edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/message/TestNovatelMessageParserImpl.java
@Test
    public void testParseInspvaMessageNotEnoughFields() throws NovatelMessageException
    {
        try
        {
            m_SUT.parseInsMessage(
                    "#INSPVAA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;"
                        + "221725.999755000,28.111270808,-80.624022245,-20.775880711,-63.661527253,39.651102732,"
                        + "-0.000502600,-0.782552644,0.238876476,148.083596481,INS_SOLUTION_GOOD*b1967880");
            fail("Expected Exception because the heading field is missing");
        }
        catch (NovatelMessageException e)
        {
            //expected exception
        }
    }
/**
     * Test parsing a INSPVA message that is missing the heading field.
     */
Test parsing a INSPVA message that is missing the heading field.
Test parsing a INSPVA message that is missing the heading field .
@Test
    public void testParseInspvaMessageNotEnoughFields() throws NovatelMessageException
    {
        try
        {
            m_SUT.parseInsMessage(
                    "#INSPVAA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;"
                        + "221725.999755000,28.111270808,-80.624022245,-20.775880711,-63.661527253,39.651102732,"
                        + "-0.000502600,-0.782552644,0.238876476,148.083596481,INS_SOLUTION_GOOD*b1967880");
            fail("Expected Exception because the heading field is missing");
        }
        catch (NovatelMessageException e)
        {
        }
    }
@ Test public void testParseInspvaMessageNotEnoughFields ( ) throws NovatelMessageException { try { m_SUT . parseInsMessage ( "#INSPVAA,COM1,0,48.5,FINESTEERING,1702,47.848,00000000,ddae,7053;" + "221725.999755000,28.111270808,-80.624022245,-20.775880711,-63.661527253,39.651102732," + "-0.000502600,-0.782552644,0.238876476,148.083596481,INS_SOLUTION_GOOD*b1967880" ) ; fail ( "Expected Exception because the heading field is missing" ) ; } catch ( NovatelMessageException e ) { } }
Test parsing a INSPVA message that is missing the heading field.
Test parsing a INSPVA message that is missing the heading field .
//expected exception