Package org.apache.jackrabbit.oak.plugins.mongomk.impl

Examples of org.apache.jackrabbit.oak.plugins.mongomk.impl.SimpleNodeScenario


        assertTrue("The node a is not found in the head revision!", exists);
    }

    @Test
    public void existsInOldRevNotInNewRev() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mk);
        String rev1 = scenario.create();
        String rev2 = scenario.deleteA();

        boolean exists = mk.nodeExists("/a", rev1);
        assertTrue(exists);

        exists = mk.nodeExists("/a", rev2);
View Full Code Here


        assertFalse(exists);
    }

    @Test
    public void siblingDelete() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mk);
        scenario.create();

        scenario.deleteB();
        boolean exists = mk.nodeExists("/a/b", null);
        assertFalse(exists);

        exists = mk.nodeExists("/a/c", null);
        assertTrue(exists);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.mongomk.impl.SimpleNodeScenario

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.