mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/TestSharedMessageUtils.java
@Test 
    public void testConvertProtoUUIDtoUUID()
    {
        SharedMessages.UUID testUuid = SharedMessages.UUID.newBuilder().
                setLeastSignificantBits(55555).
                setMostSignificantBits(333).build();
        try
        {
            SharedMessageUtils.convertProtoUUIDtoUUID(null);
            fail("Expecting exception");
        }
        catch (IllegalArgumentException e)
        {
            
        }

        UUID convertedUuid = SharedMessageUtils.convertProtoUUIDtoUUID(testUuid);
        
        assertThat(testUuid.getLeastSignificantBits(), is(convertedUuid.getLeastSignificantBits()));
        assertThat(testUuid.getMostSignificantBits(), is(convertedUuid.getMostSignificantBits()));        
    }
/**
     * Test and verify that a google protocol buffer UUID message is properly converted to a Java
     * UUID object.
     */
Test and verify that a google protocol buffer UUID message is properly converted to a Java
UUID object.
Test and verify that a google protocol buffer UUID message is properly converted to a Java UUID object .
@Test 
    public void testConvertProtoUUIDtoUUID()
    {
        SharedMessages.UUID testUuid = SharedMessages.UUID.newBuilder().
                setLeastSignificantBits(55555).
                setMostSignificantBits(333).build();
        try
        {
            SharedMessageUtils.convertProtoUUIDtoUUID(null);
            fail("Expecting exception");
        }
        catch (IllegalArgumentException e)
        {
        }
        UUID convertedUuid = SharedMessageUtils.convertProtoUUIDtoUUID(testUuid);
        assertThat(testUuid.getLeastSignificantBits(), is(convertedUuid.getLeastSignificantBits()));
        assertThat(testUuid.getMostSignificantBits(), is(convertedUuid.getMostSignificantBits()));        
    }
@ Test public void testConvertProtoUUIDtoUUID ( ) { SharedMessages . UUID testUuid = SharedMessages . UUID . newBuilder ( ) . setLeastSignificantBits ( 55555 ) . setMostSignificantBits ( 333 ) . build ( ) ; try { SharedMessageUtils . convertProtoUUIDtoUUID ( null ) ; fail ( "Expecting exception" ) ; } catch ( IllegalArgumentException e ) { } UUID convertedUuid = SharedMessageUtils . convertProtoUUIDtoUUID ( testUuid ) ; assertThat ( testUuid . getLeastSignificantBits ( ) , is ( convertedUuid . getLeastSignificantBits ( ) ) ) ; assertThat ( testUuid . getMostSignificantBits ( ) , is ( convertedUuid . getMostSignificantBits ( ) ) ) ; }
Test and verify that a google protocol buffer UUID message is properly converted to a Java
 UUID object.
Test and verify that a google protocol buffer UUID message is properly converted to a Java UUID object .