Package test.retention.util

Examples of test.retention.util.RandomClockFactory


        assertEquals(c1, c2);
        assertFalse(c1.equals(c3));
    }
   
    public void testApiBasics() {
        RandomClockFactory f = new RandomClockFactory(3);
       
        Clock c1 = f.next();
        Clock c2 = f.next();
        assertTrue(c1.before(c2));
        assertTrue(c2.after(c1));
       
        long[] scnValues = (long[])c1.values().clone();
        Clock c = new Clock(scnValues);
View Full Code Here


        }
    }
   
    public void testClockSerializer() {
        ClockSerializer serializer = new ClockSerializer();
        RandomClockFactory f = new RandomClockFactory(5);
        Clock c = f.next();
       
        byte[] raw = c.toByteArray();
        Clock c2 = Clock.parseClock(raw);
        Clock c3 = serializer.deserialize(raw);
       
View Full Code Here

TOP

Related Classes of test.retention.util.RandomClockFactory

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.