James Moger
2012-09-29 1e1b85270f93b3bca624c99b478f3a9a23be2395
tests/com/gitblit/tests/StringUtilsTest.java
@@ -150,4 +150,11 @@
      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/(.*)" }));
      assertEquals("gitblit.git", StringUtils.extractRepositoryPath("git://github.com/gitblit/gitblit.git", new String [] { ".*?://github.com/[^/].*?/(.*)" }));
      assertEquals("gitblit.git", StringUtils.extractRepositoryPath("git://github.com/gitblit/gitblit.git"));
   }
}