edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/message/TestNovatelMessageException.java
@Test
    public void testRetrieveExcetionMessage()
    {
        //error message
        String message = "blue looks red";
        NovatelMessageException ex = new NovatelMessageException(message, FormatProblem.INCOMPLETE_INS_MESSAGE);
        
        assertThat(ex.getMessage(), is(message + ": INCOMPLETE_INS_MESSAGE"));
    }
/**
     * Test creating an exception and retrieving the message from the exception.
     */
Test creating an exception and retrieving the message from the exception.
Test creating an exception and retrieving the message from the exception .
@Test
    public void testRetrieveExcetionMessage()
    {
        String message = "blue looks red";
        NovatelMessageException ex = new NovatelMessageException(message, FormatProblem.INCOMPLETE_INS_MESSAGE);
        assertThat(ex.getMessage(), is(message + ": INCOMPLETE_INS_MESSAGE"));
    }
@ Test public void testRetrieveExcetionMessage ( ) { String message = "blue looks red" ; NovatelMessageException ex = new NovatelMessageException ( message , FormatProblem . INCOMPLETE_INS_MESSAGE ) ; assertThat ( ex . getMessage ( ) , is ( message + ": INCOMPLETE_INS_MESSAGE" ) ) ; }
Test creating an exception and retrieving the message from the exception.
Test creating an exception and retrieving the message from the exception .
//error message