Package org.apache.jackrabbit.mongomk.impl

Examples of org.apache.jackrabbit.mongomk.impl.SimpleNodeScenario.create()


    }

    @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);
View Full Code Here


    }

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

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

    }

    @Test
    public void ontainsAllAffectedNodes() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mk);
        String rev1 = scenario.create();
        String rev2 = scenario.update_A_and_add_D_and_E();
        MongoAssert.assertCommitContainsAffectedPaths(rev1, "/", "/a", "/a/b", "/a/c");
        MongoAssert.assertCommitContainsAffectedPaths(rev2, "/a", "/a/b", "/a/d", "/a/b/e");
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.