Package net.floodlightcontroller.devicemanager.internal.DeviceSyncRepresentation

Examples of net.floodlightcontroller.devicemanager.internal.DeviceSyncRepresentation.SyncEntity.compareTo()


        SyncEntity se3 = new SyncEntity();
        SyncEntity se4 = new SyncEntity();
        se3.lastSeenTimestamp = new Date(1000);
        se4.lastSeenTimestamp = new Date(2000);
        assertTrue("", se3.compareTo(se4) < 0);
        assertTrue("", se4.compareTo(se3) > 0);
        se4.lastSeenTimestamp = new Date(1000);
        assertTrue("", se3.compareTo(se4) == 0);
        assertTrue("", se4.compareTo(se3) == 0);
        se4.lastSeenTimestamp = new Date(500);
        assertTrue("", se3.compareTo(se4) > 0);
View Full Code Here


        se4.lastSeenTimestamp = new Date(2000);
        assertTrue("", se3.compareTo(se4) < 0);
        assertTrue("", se4.compareTo(se3) > 0);
        se4.lastSeenTimestamp = new Date(1000);
        assertTrue("", se3.compareTo(se4) == 0);
        assertTrue("", se4.compareTo(se3) == 0);
        se4.lastSeenTimestamp = new Date(500);
        assertTrue("", se3.compareTo(se4) > 0);
        assertTrue("", se4.compareTo(se3) < 0);
    }
View Full Code Here

        se4.lastSeenTimestamp = new Date(1000);
        assertTrue("", se3.compareTo(se4) == 0);
        assertTrue("", se4.compareTo(se3) == 0);
        se4.lastSeenTimestamp = new Date(500);
        assertTrue("", se3.compareTo(se4) > 0);
        assertTrue("", se4.compareTo(se3) < 0);
    }

    /* Test basic DeviceSyncRepresentation behavior */
    @Test
    public void testDeviceSyncRepresentationBasics() {
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.