edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelStatusService.java
@Test
    public void testGetStatusStatusOff()
    {
        List<SummaryStatusEnum> statuses = Arrays.asList(SummaryStatusEnum.OFF, SummaryStatusEnum.OFF);
        List<ComponentStatus> list = getMockComponentStatuses(m_ComponentTypes, m_Descriptors, statuses);
        Status status = getLastStatus(list);
        
        assertThat(status, notNullValue());
        assertThat(status.getSummaryStatus().getSummary(), is(SummaryStatusEnum.OFF));
        assertThat(status.getSummaryStatus().getDescription(), is("Novatel asset is not actively processing data."));
       
        List<ComponentStatus> compStatuses = status.getComponentStatuses();
        verifyStatuses(compStatuses, list);
    }
/**
     * Verify that if all components are off then overall status is off.
     */
Verify that if all components are off then overall status is off.
Verify that if all components are off then overall status is off .
@Test
    public void testGetStatusStatusOff()
    {
        List<SummaryStatusEnum> statuses = Arrays.asList(SummaryStatusEnum.OFF, SummaryStatusEnum.OFF);
        List<ComponentStatus> list = getMockComponentStatuses(m_ComponentTypes, m_Descriptors, statuses);
        Status status = getLastStatus(list);
        assertThat(status, notNullValue());
        assertThat(status.getSummaryStatus().getSummary(), is(SummaryStatusEnum.OFF));
        assertThat(status.getSummaryStatus().getDescription(), is("Novatel asset is not actively processing data."));
        List<ComponentStatus> compStatuses = status.getComponentStatuses();
        verifyStatuses(compStatuses, list);
    }
@ Test public void testGetStatusStatusOff ( ) { List < SummaryStatusEnum > statuses = Arrays . asList ( SummaryStatusEnum . OFF , SummaryStatusEnum . OFF ) ; List < ComponentStatus > list = getMockComponentStatuses ( m_ComponentTypes , m_Descriptors , statuses ) ; Status status = getLastStatus ( list ) ; assertThat ( status , notNullValue ( ) ) ; assertThat ( status . getSummaryStatus ( ) . getSummary ( ) , is ( SummaryStatusEnum . OFF ) ) ; assertThat ( status . getSummaryStatus ( ) . getDescription ( ) , is ( "Novatel asset is not actively processing data." ) ) ; List < ComponentStatus > compStatuses = status . getComponentStatuses ( ) ; verifyStatuses ( compStatuses , list ) ; }
Verify that if all components are off then overall status is off.
Verify that if all components are off then overall status is off .