edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testHandleReadError()
    {
        m_SUT.handleReadError(SummaryStatusEnum.BAD, "this is bad");
        
        //capture the status
        ArgumentCaptor<ComponentStatus> statusCap = ArgumentCaptor.forClass(ComponentStatus.class);
        verify(m_NovatelStatusService, times(3)).getStatus(Mockito.any(Observation.class), statusCap.capture());
        
        assertThat(statusCap.getValue().getStatus().getSummary(), is(SummaryStatusEnum.BAD));
        assertThat(statusCap.getValue().getStatus().getDescription(), is("this is bad"));
    }
/**
     * Verify the handling of an error status callback.
     */
Verify the handling of an error status callback.
Verify the handling of an error status callback .
@Test
    public void testHandleReadError()
    {
        m_SUT.handleReadError(SummaryStatusEnum.BAD, "this is bad");
        ArgumentCaptor<ComponentStatus> statusCap = ArgumentCaptor.forClass(ComponentStatus.class);
        verify(m_NovatelStatusService, times(3)).getStatus(Mockito.any(Observation.class), statusCap.capture());
        assertThat(statusCap.getValue().getStatus().getSummary(), is(SummaryStatusEnum.BAD));
        assertThat(statusCap.getValue().getStatus().getDescription(), is("this is bad"));
    }
@ Test public void testHandleReadError ( ) { m_SUT . handleReadError ( SummaryStatusEnum . BAD , "this is bad" ) ; ArgumentCaptor < ComponentStatus > statusCap = ArgumentCaptor . forClass ( ComponentStatus . class ) ; verify ( m_NovatelStatusService , times ( 3 ) ) . getStatus ( Mockito . any ( Observation . class ) , statusCap . capture ( ) ) ; assertThat ( statusCap . getValue ( ) . getStatus ( ) . getSummary ( ) , is ( SummaryStatusEnum . BAD ) ) ; assertThat ( statusCap . getValue ( ) . getStatus ( ) . getDescription ( ) , is ( "this is bad" ) ) ; }
Verify the handling of an error status callback.
Verify the handling of an error status callback .
//capture the status