mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestMissionLoadSelected.java
@Test
    public void testNoActiveController() throws IllegalArgumentException, ObjectConverterException
    {
        //mock active controller not being set
        when(m_ActiveController.isActiveControllerSet()).thenReturn(false);
        
        //try to load mission
        String outcome = m_SUT.loadMission();
        
        //verify message sender NEVER sends messages
        verify(m_MissionProgMgr, never()).queueMessage(eq(123), Mockito.any(Message.class), 
                Mockito.any(MissionProgrammingMessageType.class));
        
        //verify outcome
        assertThat(outcome, is(nullValue()));
    }
/**
     * Test that null is returned when the active controller is not set.
     * 
     */
Test that null is returned when the active controller is not set.
Test that null is returned when the active controller is not set .
@Test
    public void testNoActiveController() throws IllegalArgumentException, ObjectConverterException
    {
        when(m_ActiveController.isActiveControllerSet()).thenReturn(false);
        String outcome = m_SUT.loadMission();
        verify(m_MissionProgMgr, never()).queueMessage(eq(123), Mockito.any(Message.class), 
                Mockito.any(MissionProgrammingMessageType.class));
        assertThat(outcome, is(nullValue()));
    }
@ Test public void testNoActiveController ( ) throws IllegalArgumentException , ObjectConverterException { when ( m_ActiveController . isActiveControllerSet ( ) ) . thenReturn ( false ) ; String outcome = m_SUT . loadMission ( ) ; verify ( m_MissionProgMgr , never ( ) ) . queueMessage ( eq ( 123 ) , Mockito . any ( Message . class ) , Mockito . any ( MissionProgrammingMessageType . class ) ) ; assertThat ( outcome , is ( nullValue ( ) ) ) ; }
Test that null is returned when the active controller is not set.
Test that null is returned when the active controller is not set .
//mock active controller not being set //try to load mission //verify message sender NEVER sends messages //verify outcome