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

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision


*/
public class UtilsTest {

    @Test
    public void getPreviousIdFor() {
        Revision r = new Revision(System.currentTimeMillis(), 0, 0);
        assertEquals("1:p/" + r.toString(), Utils.getPreviousIdFor("0:/", r));
        assertEquals("2:p/test/" + r.toString(), Utils.getPreviousIdFor("1:/test", r));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.mongomk.Revision

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.