James Moger
2012-10-03 c25b9801899e86753dd6ba80ebc68102ee37a21c
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"));
   }
}