use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugUtilTest method testGetSupportedPathsMountsBelowSupportedPath2.
@Test(expected = IllegalStateException.class)
public void testGetSupportedPathsMountsBelowSupportedPath2() {
MountInfoProvider mip = Mounts.newBuilder().mount("private", "/libs", SUPPORTED_PATH + "/any/path/below").build();
CugUtil.getSupportedPaths(CUG_CONFIG, mip);
}
use of org.apache.jackrabbit.oak.spi.mount.MountInfoProvider in project jackrabbit-oak by apache.
the class CugUtilTest method testGetSupportedPathsWithDifferentMounts.
@Test
public void testGetSupportedPathsWithDifferentMounts() {
Set<String> expected = CUG_CONFIG.getConfigValue(PARAM_CUG_SUPPORTED_PATHS, ImmutableSet.<String>of());
MountInfoProvider mip = Mounts.newBuilder().mount("private", "/libs", "/apps", "/nonCugPath").build();
assertNotSame(expected, CugUtil.getSupportedPaths(CUG_CONFIG, mip));
assertEquals(expected, CugUtil.getSupportedPaths(CUG_CONFIG, mip));
}
Aggregations