edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/message/TestNovatelMessageParserImpl.java
@Test
    public void testParseTimeMessage() throws NovatelMessageException
    {
        //the offset here is one second less than in the original message
        String newTimeData = "#TIMEA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;"
                + " VALID,-3.432839221e-09,6.603391298e-08,-17.00000000000,2013,11,7,0,15,23000,VALID*13cf9c8b";
        
        //set the off-set, defaults to zero otherwise
        m_SUT.evaluateTimeMessage(m_TimeData);
        //should have an offset of -16
        NovatelInsMessage messageBeforeNewOffset = m_SUT.parseInsMessage(m_InsData);
        
        //adjust the time offset to -17
        m_SUT.evaluateTimeMessage(newTimeData);
        
        //evaluate the same message
        NovatelInsMessage messageAfterOffset = m_SUT.parseInsMessage(m_InsData);
        //new time should be less than before because off set is larger in the new time message
        assertThat(messageAfterOffset.getUtcTime(), is(lessThan(messageBeforeNewOffset.getUtcTime())));
    }
/**
     * Test parsing a time message sets the offset.
     */
Test parsing a time message sets the offset.
Test parsing a time message sets the offset .
@Test
    public void testParseTimeMessage() throws NovatelMessageException
    {
        String newTimeData = "#TIMEA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;"
                + " VALID,-3.432839221e-09,6.603391298e-08,-17.00000000000,2013,11,7,0,15,23000,VALID*13cf9c8b";
        m_SUT.evaluateTimeMessage(m_TimeData);
        NovatelInsMessage messageBeforeNewOffset = m_SUT.parseInsMessage(m_InsData);
        m_SUT.evaluateTimeMessage(newTimeData);
        NovatelInsMessage messageAfterOffset = m_SUT.parseInsMessage(m_InsData);
        assertThat(messageAfterOffset.getUtcTime(), is(lessThan(messageBeforeNewOffset.getUtcTime())));
    }
@ Test public void testParseTimeMessage ( ) throws NovatelMessageException { String newTimeData = "#TIMEA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;" + " VALID,-3.432839221e-09,6.603391298e-08,-17.00000000000,2013,11,7,0,15,23000,VALID*13cf9c8b" ; m_SUT . evaluateTimeMessage ( m_TimeData ) ; NovatelInsMessage messageBeforeNewOffset = m_SUT . parseInsMessage ( m_InsData ) ; m_SUT . evaluateTimeMessage ( newTimeData ) ; NovatelInsMessage messageAfterOffset = m_SUT . parseInsMessage ( m_InsData ) ; assertThat ( messageAfterOffset . getUtcTime ( ) , is ( lessThan ( messageBeforeNewOffset . getUtcTime ( ) ) ) ) ; }
Test parsing a time message sets the offset.
Test parsing a time message sets the offset .
//the offset here is one second less than in the original message //set the off-set, defaults to zero otherwise //should have an offset of -16 //adjust the time offset to -17 //evaluate the same message //new time should be less than before because off set is larger in the new time message