mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/component/TestStatusComponent.java
@Test
    public void testUnknownStatus()
    {
        String expectedStyle = "led-UNKNOWN ui-icon-help ui-icon";
        when(m_CapableObj.getSummaryStatus()).thenReturn(SummaryStatusEnum.UNKNOWN);
        
        assertThat(m_SUT.getStatusStyle(), is(expectedStyle));
        
        when(m_CapableObj.getSummaryStatus()).thenReturn(null);
        
        assertThat(m_SUT.getStatusStyle(), is(expectedStyle));
    }
/**
     * Verify correct string is returned for UNKNONWN and null statuses.
     */
Verify correct string is returned for UNKNONWN and null statuses.
Verify correct string is returned for UNKNONWN and null statuses .
@Test
    public void testUnknownStatus()
    {
        String expectedStyle = "led-UNKNOWN ui-icon-help ui-icon";
        when(m_CapableObj.getSummaryStatus()).thenReturn(SummaryStatusEnum.UNKNOWN);
        assertThat(m_SUT.getStatusStyle(), is(expectedStyle));
        when(m_CapableObj.getSummaryStatus()).thenReturn(null);
        assertThat(m_SUT.getStatusStyle(), is(expectedStyle));
    }
@ Test public void testUnknownStatus ( ) { String expectedStyle = "led-UNKNOWN ui-icon-help ui-icon" ; when ( m_CapableObj . getSummaryStatus ( ) ) . thenReturn ( SummaryStatusEnum . UNKNOWN ) ; assertThat ( m_SUT . getStatusStyle ( ) , is ( expectedStyle ) ) ; when ( m_CapableObj . getSummaryStatus ( ) ) . thenReturn ( null ) ; assertThat ( m_SUT . getStatusStyle ( ) , is ( expectedStyle ) ) ; }
Verify correct string is returned for UNKNONWN and null statuses.
Verify correct string is returned for UNKNONWN and null statuses .