edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelStatusService.java
@Test
    public void testGetStatusStatusNoChange()
    {
        List<SummaryStatusEnum> statuses = Arrays.asList(SummaryStatusEnum.GOOD, SummaryStatusEnum.GOOD);
        List<ComponentStatus> lists = getMockComponentStatuses(m_ComponentTypes, m_Descriptors, statuses);
        Status status = getLastStatus(lists);
        
        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, lists);
        
        Observation observation = new Observation();
        observation.setStatus(status);
        
        Status newStatus = m_SUT.getStatus(observation, lists.get(0));
        assertThat(newStatus, nullValue());
    }
/**
     * Verify that if previous status and the component statuses passed in haven't changed then a 
     * new status isn't made.
     */
Verify that if previous status and the component statuses passed in haven't changed then a
new status isn't made.
Verify that if previous status and the component statuses passed in haven ' t changed then a new status isn ' t made .
@Test
    public void testGetStatusStatusNoChange()
    {
        List<SummaryStatusEnum> statuses = Arrays.asList(SummaryStatusEnum.GOOD, SummaryStatusEnum.GOOD);
        List<ComponentStatus> lists = getMockComponentStatuses(m_ComponentTypes, m_Descriptors, statuses);
        Status status = getLastStatus(lists);
        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, lists);
        Observation observation = new Observation();
        observation.setStatus(status);
        Status newStatus = m_SUT.getStatus(observation, lists.get(0));
        assertThat(newStatus, nullValue());
    }
@ Test public void testGetStatusStatusNoChange ( ) { List < SummaryStatusEnum > statuses = Arrays . asList ( SummaryStatusEnum . GOOD , SummaryStatusEnum . GOOD ) ; List < ComponentStatus > lists = getMockComponentStatuses ( m_ComponentTypes , m_Descriptors , statuses ) ; Status status = getLastStatus ( lists ) ; 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 , lists ) ; Observation observation = new Observation ( ) ; observation . setStatus ( status ) ; Status newStatus = m_SUT . getStatus ( observation , lists . get ( 0 ) ) ; assertThat ( newStatus , nullValue ( ) ) ; }
Verify that if previous status and the component statuses passed in haven't changed then a
 new status isn't made.
Verify that if previous status and the component statuses passed in haven ' t changed then a new status isn ' t made .