Code example for UUID

Methods: clockSequence, node, timestamp, variant, version

0
    public void test_toString() { 
        UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L);
        String actual = uuid.toString();
        assertEquals("f81d4fae-7dec-11d0-a765-00a0c91e6bf6", actual);
 
        uuid = new UUID(0x0000000000001000L, 0x8000000000000000L);
        actual = uuid.toString();
        assertEquals("00000000-0000-1000-8000-000000000000", actual);
    } 
 
    /** 
     * @tests serialization/deserialization. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "!SerializationSelf", 
        args = {} 
    ) 
    public void testSerializationSelf() throws Exception { 
        SerializationTest.verifySelf(new UUID(0xf81d4fae7dec11d0L,