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