mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestActiveControllerImpl.java
@Test
    public void testIsActiveControllerSet()
    {
        assertThat(m_SUT.isActiveControllerSet(), is(false));
        
        ControllerModel model = new ControllerModel(123456, m_ControllerImageInterface);
        model.setIsReady(true);
        
        m_SUT.setActiveController(model);
        
        when(m_ControllerMgr.getController(eq(123456))).thenReturn(model);
        
        assertThat(m_SUT.isActiveControllerSet(), is(true));
    }
/**
     * Verify appropriate boolean value is returned based on the existence of an active controller. 
     */
Verify appropriate boolean value is returned based on the existence of an active controller.
Verify appropriate boolean value is returned based on the existence of an active controller .
@Test
    public void testIsActiveControllerSet()
    {
        assertThat(m_SUT.isActiveControllerSet(), is(false));
        ControllerModel model = new ControllerModel(123456, m_ControllerImageInterface);
        model.setIsReady(true);
        m_SUT.setActiveController(model);
        when(m_ControllerMgr.getController(eq(123456))).thenReturn(model);
        assertThat(m_SUT.isActiveControllerSet(), is(true));
    }
@ Test public void testIsActiveControllerSet ( ) { assertThat ( m_SUT . isActiveControllerSet ( ) , is ( false ) ) ; ControllerModel model = new ControllerModel ( 123456 , m_ControllerImageInterface ) ; model . setIsReady ( true ) ; m_SUT . setActiveController ( model ) ; when ( m_ControllerMgr . getController ( eq ( 123456 ) ) ) . thenReturn ( model ) ; assertThat ( m_SUT . isActiveControllerSet ( ) , is ( true ) ) ; }
Verify appropriate boolean value is returned based on the existence of an active controller.
Verify appropriate boolean value is returned based on the existence of an active controller .