mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/mp/TestCurrentMissionMgrImpl.java
@Test
    public void testEventHelperControllerEvent()
    {
        assertThat(initCurrentMissionModels(123), is(3));
        
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, 123);
        
        Event event = new Event(ControllerMgr.TOPIC_CONTROLLER_REMOVED, props);
        
        //this will remove from the controllers list
        m_ControllerEventHelper.handleEvent(event);
        
        //call to get controllers should now be an empty list
        List<CurrentMissionModel> expectedEmptyList = m_SUT.getCurrentMissionsForControllerAsync(123);
        
        assertThat(expectedEmptyList.size(), is(0));
    }
/**
     * Verify controller events are properly handled.
     */
Verify controller events are properly handled.
Verify controller events are properly handled .
@Test
    public void testEventHelperControllerEvent()
    {
        assertThat(initCurrentMissionModels(123), is(3));
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, 123);
        Event event = new Event(ControllerMgr.TOPIC_CONTROLLER_REMOVED, props);
        m_ControllerEventHelper.handleEvent(event);
        List<CurrentMissionModel> expectedEmptyList = m_SUT.getCurrentMissionsForControllerAsync(123);
        assertThat(expectedEmptyList.size(), is(0));
    }
@ Test public void testEventHelperControllerEvent ( ) { assertThat ( initCurrentMissionModels ( 123 ) , is ( 3 ) ) ; Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( SharedPropertyConstants . EVENT_PROP_CONTROLLER_ID , 123 ) ; Event event = new Event ( ControllerMgr . TOPIC_CONTROLLER_REMOVED , props ) ; m_ControllerEventHelper . handleEvent ( event ) ; List < CurrentMissionModel > expectedEmptyList = m_SUT . getCurrentMissionsForControllerAsync ( 123 ) ; assertThat ( expectedEmptyList . size ( ) , is ( 0 ) ) ; }
Verify controller events are properly handled.
Verify controller events are properly handled .
//this will remove from the controllers list //call to get controllers should now be an empty list