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