Code example for UUID

Methods: version

0
        assertEquals(Long.MIN_VALUE, uuid.getLeastSignificantBits());
        uuid = new UUID(0, Long.MAX_VALUE);
        assertEquals(Long.MAX_VALUE, uuid.getLeastSignificantBits());
    } 
 
    /** 
     * @see UUID#getMostSignificantBits() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getMostSignificantBits", 
        args = {} 
    ) 
    public void test_getMostSignificantBits() { 
        UUID uuid = new UUID(0, 0);
        assertEquals(0, uuid.getMostSignificantBits());
        uuid = new UUID(Long.MIN_VALUE, 0);
        assertEquals(Long.MIN_VALUE, uuid.getMostSignificantBits());
        uuid = new UUID(Long.MAX_VALUE, 0);
        assertEquals(Long.MAX_VALUE, uuid.getMostSignificantBits());