edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/message/TestNovatelMessageException.java
@Test
    public void testThrowableAndProblem()
    {
        Throwable throwable = new Throwable("illegal");
        NovatelMessageException ex = 
                new NovatelMessageException(throwable, FormatProblem.INCOMPLETE_INS_MESSAGE);
        
        //verify fields
        assertThat(ex.getFormatProblem(), is(FormatProblem.INCOMPLETE_INS_MESSAGE));
        assertThat(ex.getCause(), is(throwable));
    }
/**
     * Test creating an exception with a throwable and "format problem".
     * Verify fields can be retrieved.
     */
Test creating an exception with a throwable and "format problem".
Verify fields can be retrieved.
Test creating an exception with a throwable and " format problem " . Verify fields can be retrieved .
@Test
    public void testThrowableAndProblem()
    {
        Throwable throwable = new Throwable("illegal");
        NovatelMessageException ex = 
                new NovatelMessageException(throwable, FormatProblem.INCOMPLETE_INS_MESSAGE);
        assertThat(ex.getFormatProblem(), is(FormatProblem.INCOMPLETE_INS_MESSAGE));
        assertThat(ex.getCause(), is(throwable));
    }
@ Test public void testThrowableAndProblem ( ) { Throwable throwable = new Throwable ( "illegal" ) ; NovatelMessageException ex = new NovatelMessageException ( throwable , FormatProblem . INCOMPLETE_INS_MESSAGE ) ; assertThat ( ex . getFormatProblem ( ) , is ( FormatProblem . INCOMPLETE_INS_MESSAGE ) ) ; assertThat ( ex . getCause ( ) , is ( throwable ) ) ; }
Test creating an exception with a throwable and "format problem".
Test creating an exception with a throwable and " format problem " .
//verify fields