edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/message/TestNovatelMessageParserImpl.java
@Test
    public void testParseInsMessage() throws NovatelMessageException
    {
        //set the time offset
        m_SUT.evaluateTimeMessage(m_TimeData);
        NovatelInsMessage message = m_SUT.parseInsMessage(m_InsData);
        
        assertThat(message.getCoordinates().getLongitude().getValue(), is(Double.parseDouble("-80.624022245")));
        assertThat(message.getCoordinates().getLatitude().getValue(), is(Double.parseDouble("28.111270808")));
        assertThat(message.getCoordinates().getAltitude().getValue(), is(Double.parseDouble("-20.775880711")));
        assertThat(message.getOrientation().getHeading().getValue(), is(Double.parseDouble("148.083596481")));
        assertThat(message.getOrientation().getElevation().getValue(), is(Double.parseDouble("0.238876476")));
        assertThat(message.getOrientation().getBank().getValue(), is(Double.parseDouble("-0.782552644")));
    }
/**
     * Test parsing an INS message.
     */
Test parsing an INS message.
Test parsing an INS message .
@Test
    public void testParseInsMessage() throws NovatelMessageException
    {
        m_SUT.evaluateTimeMessage(m_TimeData);
        NovatelInsMessage message = m_SUT.parseInsMessage(m_InsData);
        assertThat(message.getCoordinates().getLongitude().getValue(), is(Double.parseDouble("-80.624022245")));
        assertThat(message.getCoordinates().getLatitude().getValue(), is(Double.parseDouble("28.111270808")));
        assertThat(message.getCoordinates().getAltitude().getValue(), is(Double.parseDouble("-20.775880711")));
        assertThat(message.getOrientation().getHeading().getValue(), is(Double.parseDouble("148.083596481")));
        assertThat(message.getOrientation().getElevation().getValue(), is(Double.parseDouble("0.238876476")));
        assertThat(message.getOrientation().getBank().getValue(), is(Double.parseDouble("-0.782552644")));
    }
@ Test public void testParseInsMessage ( ) throws NovatelMessageException { m_SUT . evaluateTimeMessage ( m_TimeData ) ; NovatelInsMessage message = m_SUT . parseInsMessage ( m_InsData ) ; assertThat ( message . getCoordinates ( ) . getLongitude ( ) . getValue ( ) , is ( Double . parseDouble ( "-80.624022245" ) ) ) ; assertThat ( message . getCoordinates ( ) . getLatitude ( ) . getValue ( ) , is ( Double . parseDouble ( "28.111270808" ) ) ) ; assertThat ( message . getCoordinates ( ) . getAltitude ( ) . getValue ( ) , is ( Double . parseDouble ( "-20.775880711" ) ) ) ; assertThat ( message . getOrientation ( ) . getHeading ( ) . getValue ( ) , is ( Double . parseDouble ( "148.083596481" ) ) ) ; assertThat ( message . getOrientation ( ) . getElevation ( ) . getValue ( ) , is ( Double . parseDouble ( "0.238876476" ) ) ) ; assertThat ( message . getOrientation ( ) . getBank ( ) . getValue ( ) , is ( Double . parseDouble ( "-0.782552644" ) ) ) ; }
Test parsing an INS message.
Test parsing an INS message .
//set the time offset