Package org.apache.jackrabbit.mongomk.command

Examples of org.apache.jackrabbit.mongomk.command.GetHeadRevisionCommandMongo.execute()


    public void testGeadHeadRevisionSimple() throws Exception {
        SimpleNodeScenario scenario = new SimpleNodeScenario(mongoConnection);
        String revisionId = scenario.create();

        GetHeadRevisionCommandMongo command = new GetHeadRevisionCommandMongo(mongoConnection);
        String revisionId2 = command.execute();
        assertTrue(revisionId.equals(revisionId2));

        scenario.delete_A();
        String revisionId3 = command.execute();
        assertFalse(revisionId3.equals(revisionId2));
View Full Code Here


        GetHeadRevisionCommandMongo command = new GetHeadRevisionCommandMongo(mongoConnection);
        String revisionId2 = command.execute();
        assertTrue(revisionId.equals(revisionId2));

        scenario.delete_A();
        String revisionId3 = command.execute();
        assertFalse(revisionId3.equals(revisionId2));
    }}
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.