Search in sources :

Example 1 with SimpleMountInfoProvider

use of org.apache.jackrabbit.oak.spi.mount.SimpleMountInfoProvider in project jackrabbit-oak by apache.

the class SimpleMountInfoProviderTest method defaultMount.

@Test
public void defaultMount() throws Exception {
    MountInfoProvider mip = new SimpleMountInfoProvider(Collections.<Mount>emptyList());
    assertNotNull(mip.getMountByPath("/a"));
    assertTrue(mip.getMountByPath("/a").isDefault());
    assertFalse(mip.hasNonDefaultMounts());
}
Also used : SimpleMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.SimpleMountInfoProvider) MountInfoProvider(org.apache.jackrabbit.oak.spi.mount.MountInfoProvider) SimpleMountInfoProvider(org.apache.jackrabbit.oak.spi.mount.SimpleMountInfoProvider) Test(org.junit.Test)

Aggregations

MountInfoProvider (org.apache.jackrabbit.oak.spi.mount.MountInfoProvider)1 SimpleMountInfoProvider (org.apache.jackrabbit.oak.spi.mount.SimpleMountInfoProvider)1 Test (org.junit.Test)1