Paul Martin
2016-04-27 c2188a840bc4153ae92112b04b2e06a90d3944aa
src/test/java/com/gitblit/tests/StringUtilsTest.java
@@ -15,10 +15,6 @@
 */
package com.gitblit.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.List;
@@ -26,7 +22,7 @@
import com.gitblit.utils.StringUtils;
public class StringUtilsTest {
public class StringUtilsTest extends GitblitUnitTest {
   @Test
   public void testIsEmpty() throws Exception {
@@ -54,7 +50,7 @@
   public void testEscapeForHtml() throws Exception {
      String input = "& < > \" \t";
      String outputNoChange = "&amp; &lt; &gt; &quot; \t";
      String outputChange = "&amp;&nbsp;&lt;&nbsp;&gt;&nbsp;&quot;&nbsp; &nbsp; &nbsp;";
      String outputChange = "&amp;&nbsp;&lt;&nbsp;&gt;&nbsp;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
      assertEquals(outputNoChange, StringUtils.escapeForHtml(input, false));
      assertEquals(outputChange, StringUtils.escapeForHtml(input, true));
   }
@@ -150,7 +146,7 @@
      assertFalse(StringUtils.fuzzyMatch("123", "12345"));
      assertFalse(StringUtils.fuzzyMatch("AbCdEfHIJ", "abc*hhh"));
   }
   @Test
   public void testGetRepositoryPath() throws Exception {
      assertEquals("gitblit/gitblit.git", StringUtils.extractRepositoryPath("git://github.com/gitblit/gitblit.git", new String [] { ".*?://github.com/(.*)" }));