Exemplo n.º 1
0
 @Test
 public void defaultDirMatchesDirPath() {
   assertThat(
       SpecialPathConstants.DEFAULT_DIR
           .getMatcher()
           .matches(new SimpleLocation("http://foo.com"), "/org/commonjava/"),
       equalTo(true));
 }
Exemplo n.º 2
0
 @Test
 public void defaultDirDoesntMatchFileInRootPath() {
   assertThat(
       SpecialPathConstants.DEFAULT_DIR
           .getMatcher()
           .matches(new SimpleLocation("http://foo.com"), "/file.txt"),
       equalTo(false));
 }
Exemplo n.º 3
0
 @Test
 public void defaultDirDoesntMatchPath() {
   assertThat(
       SpecialPathConstants.DEFAULT_DIR
           .getMatcher()
           .matches(
               new SimpleLocation("http://foo.com"),
               "/org/commonjava/commonjava/10/commonjava-10.pom"),
       equalTo(false));
 }