Package com.fasterxml.uuid

Examples of com.fasterxml.uuid.EthernetAddress.toLong()


        EthernetAddress ethernet_address =
            new EthernetAddress(new byte[ETHERNET_ADDRESS_ARRAY_LENGTH]);
        assertEquals(
            "EthernetAddress(byte[]) did not create expected EthernetAddress",
            NULL_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
       
        // let's test creating an array from a good byte array
        ethernet_address =
            new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals(
View Full Code Here


        ethernet_address =
            new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals(
            "EthernetAddress(byte[]) did not create expected EthernetAddress",
            VALID_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
    }
   
    /**
     * Test of EthernetAddress(long) constructor,
     * of class com.fasterxml.uuid.EthernetAddress.
View Full Code Here

        EthernetAddress ethernet_address =
            new EthernetAddress(0x0000000000000000L);
        assertEquals(
            "EthernetAddress(long) did not create expected EthernetAddress",
            NULL_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
       
        // let's test creating an array from a good long
        ethernet_address = new EthernetAddress(VALID_ETHERNET_ADDRESS_LONG);
        assertEquals(
            "EthernetAddress(long) did not create expected EthernetAddress",
View Full Code Here

        // let's test creating an array from a good long
        ethernet_address = new EthernetAddress(VALID_ETHERNET_ADDRESS_LONG);
        assertEquals(
            "EthernetAddress(long) did not create expected EthernetAddress",
            VALID_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
    }
   
    /**
     * Test of EthernetAddress(String) constructor,
     * of class com.fasterxml.uuid.EthernetAddress.
View Full Code Here

       
        // test the null EthernetAddress
        EthernetAddress ethernet_address = new EthernetAddress(0L);
        assertEquals("null EthernetAddress long and toLong did not match",
                    NULL_ETHERNET_ADDRESS_LONG,
                    ethernet_address.toLong());
       
        // test a non-null EthernetAddress
        ethernet_address =
            new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals("EthernetAddress long and toLong results did not match",
View Full Code Here

        // test a non-null EthernetAddress
        ethernet_address =
            new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals("EthernetAddress long and toLong results did not match",
                    VALID_ETHERNET_ADDRESS_LONG,
                    ethernet_address.toLong());
    }
   
    /**
     * Test of toString method, of class com.fasterxml.uuid.EthernetAddress.
     */
 
View Full Code Here

        EthernetAddress ethernet_address =
            EthernetAddress.valueOf(new byte[ETHERNET_ADDRESS_ARRAY_LENGTH]);
        assertEquals(
            "EthernetAddress.valueOf did not create expected EthernetAddress",
            NULL_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
       
        // let's test creating an array from a good byte array
        ethernet_address =
            EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals(
View Full Code Here

        ethernet_address =
            EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);
        assertEquals(
            "EthernetAddress.valueOf did not create expected EthernetAddress",
            VALID_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
    }
   
    /**
     * Test of valueOf(int[]) method,
     * of class com.fasterxml.uuid.EthernetAddress.
View Full Code Here

        EthernetAddress ethernet_address =
            EthernetAddress.valueOf(new int[ETHERNET_ADDRESS_ARRAY_LENGTH]);
        assertEquals(
            "EthernetAddress.valueOf did not create expected EthernetAddress",
            NULL_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
       
        // let's test creating an array from a good int array
        ethernet_address =
            EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_INT_ARRAY);
        assertEquals(
View Full Code Here

        ethernet_address =
            EthernetAddress.valueOf(VALID_ETHERNET_ADDRESS_INT_ARRAY);
        assertEquals(
            "EthernetAddress.valueOf did not create expected EthernetAddress",
            VALID_ETHERNET_ADDRESS_LONG,
            ethernet_address.toLong());
    }
   
    /**
     * Test of valueOf(long) method,
     * of class com.fasterxml.uuid.EthernetAddress.
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.