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