From 5cc4f299b2a1138687cbaea73257abab08e245a4 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sat, 04 Jun 2011 14:23:55 -0400 Subject: [PATCH] Fixed refs linking problem. Author metrics are lowercase. --- tests/com/gitblit/tests/StringUtilsTest.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/com/gitblit/tests/StringUtilsTest.java b/tests/com/gitblit/tests/StringUtilsTest.java index 24033b2..49938ae 100644 --- a/tests/com/gitblit/tests/StringUtilsTest.java +++ b/tests/com/gitblit/tests/StringUtilsTest.java @@ -35,7 +35,7 @@ String output = "this<br/>is<br/>a<br/>test<br/><br/>of<br/><br/>line<br/><br/>breaking"; assertTrue(StringUtils.breakLinesForHtml(input).equals(output)); } - + public void testEscapeForHtml() throws Exception { String input = "& < > \" \t"; String output_nochange = "& < > " \t"; @@ -64,11 +64,12 @@ assertTrue(StringUtils.leftPad(input, input.length(), ' ').equals(input)); assertTrue(StringUtils.rightPad(input, input.length(), ' ').equals(input)); } - + public void testSHA1() throws Exception { - assertTrue(StringUtils.getSHA1("blob 16\000what is up, doc?").equals("bd9dbf5aae1a3862dd1526723246b20206e5fc37")); + assertTrue(StringUtils.getSHA1("blob 16\000what is up, doc?").equals( + "bd9dbf5aae1a3862dd1526723246b20206e5fc37")); } - + public void testRootPath() throws Exception { String input = "/nested/path/to/repository"; String output = "/nested/path/to"; -- Gitblit v1.9.1