Code example for UUID

Methods: equals

0
    /** 
     * @see UUID#node() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "node", 
        args = {} 
    ) 
    public void test_node() { 
        UUID uuid = new UUID(0x0000000000001000L, 0x8000000000000000L);
        assertEquals(0x0, uuid.node());
 
        uuid = new UUID(0x0000000000001000L, 0x8000FFFFFFFFFFFFL);
        assertEquals(0xFFFFFFFFFFFFL, uuid.node());
 
        uuid = new UUID(0x0000000000000000L, 0x8000000000000000L);
        try { 
            uuid.node();
            fail("No UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {}