mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/protoconverter/TestJaxbProtoObjectConverterImpl.java
@Test
    public void testCoordAndOrien() throws ObjectConverterException
    {
        Coordinates coords = SpatialTypesFactory.newCoordinates(23.098, 45.5);
        Orientation orien = SpatialTypesFactory.newOrientation(33.3, 14.5677, .09);
        
        Message coordsMessage = m_SUT.convertToProto(coords);
        Message orinMessage = m_SUT.convertToProto(orien);
        Coordinates convertedCoords = (Coordinates)m_SUT.convertToJaxb(coordsMessage);
        Orientation convertedOrien = (Orientation)m_SUT.convertToJaxb(orinMessage);
        
        //Check that the converted messages match the original.
        JaxbUtil.assertEqualContent(convertedCoords, coords);
        JaxbUtil.assertEqualContent(convertedOrien, orien);
    }
/**
     * Test converting coordinates and orientation. 
     * Verifies that 'types' data can be converted standalone.
     */
Test converting coordinates and orientation.
Verifies that 'types' data can be converted standalone.
Test converting coordinates and orientation . Verifies that ' types ' data can be converted standalone .
@Test
    public void testCoordAndOrien() throws ObjectConverterException
    {
        Coordinates coords = SpatialTypesFactory.newCoordinates(23.098, 45.5);
        Orientation orien = SpatialTypesFactory.newOrientation(33.3, 14.5677, .09);
        Message coordsMessage = m_SUT.convertToProto(coords);
        Message orinMessage = m_SUT.convertToProto(orien);
        Coordinates convertedCoords = (Coordinates)m_SUT.convertToJaxb(coordsMessage);
        Orientation convertedOrien = (Orientation)m_SUT.convertToJaxb(orinMessage);
        JaxbUtil.assertEqualContent(convertedCoords, coords);
        JaxbUtil.assertEqualContent(convertedOrien, orien);
    }
@ Test public void testCoordAndOrien ( ) throws ObjectConverterException { Coordinates coords = SpatialTypesFactory . newCoordinates ( 23.098 , 45.5 ) ; Orientation orien = SpatialTypesFactory . newOrientation ( 33.3 , 14.5677 , .09 ) ; Message coordsMessage = m_SUT . convertToProto ( coords ) ; Message orinMessage = m_SUT . convertToProto ( orien ) ; Coordinates convertedCoords = ( Coordinates ) m_SUT . convertToJaxb ( coordsMessage ) ; Orientation convertedOrien = ( Orientation ) m_SUT . convertToJaxb ( orinMessage ) ; JaxbUtil . assertEqualContent ( convertedCoords , coords ) ; JaxbUtil . assertEqualContent ( convertedOrien , orien ) ; }
Test converting coordinates and orientation.
Test converting coordinates and orientation .
//Check that the converted messages match the original.