mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/advanced/configuration/TestSystemConfigurationImpl.java
@Test
    public void testHandleRemoveController() throws SecurityException, IllegalArgumentException, NoSuchFieldException, 
        IllegalAccessException
    {   
        setupConfigurations();
        
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, 25);
        Event event = new Event(ControllerMgr.TOPIC_CONTROLLER_REMOVED, props);
        
        assertThat(m_SUT.getConfigurationsAsync(25).size(), is(2));
        
        m_ControllerEventHandler.handleEvent(event);
        
        assertThat(m_SUT.getConfigurationsAsync(25).size(), is(0));
    }
/**
     * Test the controller event handler.
     * Verify that all information is removed for the specified controller in the controller removed event.
     */
Test the controller event handler.
Verify that all information is removed for the specified controller in the controller removed event.
Test the controller event handler . Verify that all information is removed for the specified controller in the controller removed event .
@Test
    public void testHandleRemoveController() throws SecurityException, IllegalArgumentException, NoSuchFieldException, 
        IllegalAccessException
    {   
        setupConfigurations();
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, 25);
        Event event = new Event(ControllerMgr.TOPIC_CONTROLLER_REMOVED, props);
        assertThat(m_SUT.getConfigurationsAsync(25).size(), is(2));
        m_ControllerEventHandler.handleEvent(event);
        assertThat(m_SUT.getConfigurationsAsync(25).size(), is(0));
    }
@ Test public void testHandleRemoveController ( ) throws SecurityException , IllegalArgumentException , NoSuchFieldException , IllegalAccessException { setupConfigurations ( ) ; Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( SharedPropertyConstants . EVENT_PROP_CONTROLLER_ID , 25 ) ; Event event = new Event ( ControllerMgr . TOPIC_CONTROLLER_REMOVED , props ) ; assertThat ( m_SUT . getConfigurationsAsync ( 25 ) . size ( ) , is ( 2 ) ) ; m_ControllerEventHandler . handleEvent ( event ) ; assertThat ( m_SUT . getConfigurationsAsync ( 25 ) . size ( ) , is ( 0 ) ) ; }
Test the controller event handler.
Test the controller event handler .