mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestMissionProgramMgrImpl.java
@Test
    public void testGetRemoteMissionNames()
    {
        //mock controller
        ControllerModel model = mock(ControllerModel.class);
        when(model.getId()).thenReturn(911);
        
        //active controller behavior
        when(m_ActiveController.getActiveController()).thenReturn(model);

        //verify
        assertThat(m_SUT.getRemoteTemplateNames(911).size(), is(0));
    }
/**
     * Test get remote mission names, does not return null when there are no known controllers.
     * 
     */
Test get remote mission names, does not return null when there are no known controllers.
Test get remote mission names does not return null when there are no known controllers .
@Test
    public void testGetRemoteMissionNames()
    {
        ControllerModel model = mock(ControllerModel.class);
        when(model.getId()).thenReturn(911);
        when(m_ActiveController.getActiveController()).thenReturn(model);
        assertThat(m_SUT.getRemoteTemplateNames(911).size(), is(0));
    }
@ Test public void testGetRemoteMissionNames ( ) { ControllerModel model = mock ( ControllerModel . class ) ; when ( model . getId ( ) ) . thenReturn ( 911 ) ; when ( m_ActiveController . getActiveController ( ) ) . thenReturn ( model ) ; assertThat ( m_SUT . getRemoteTemplateNames ( 911 ) . size ( ) , is ( 0 ) ) ; }
Test get remote mission names, does not return null when there are no known controllers.
Test get remote mission names does not return null when there are no known controllers .
//mock controller //active controller behavior //verify