mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestConfigurationAdminEventBridge.java
@Test
    public void testConfigurationBridge() throws IOException, InvalidSyntaxException, InterruptedException
    {
        m_Config = m_ConfigAdmin.getConfiguration("some.pid.test.configuration.bridge");

        Dictionary<String, Object> props =  new Hashtable<>();
        
        String value = "test.value";
        String key = "test.key";
        props.put(key, value);

        m_ConfigEventHandler = new EventHandlerSyncer(ConfigurationEventConstants.TOPIC_CONFIGURATION_UPDATED_EVENT, 
                "(" + ConfigurationEventConstants.EVENT_PROP_PID + "=" + m_Config.getPid() + ")");
        
        //Update configuration
        m_Config.update(props);
        
        //Verify that a configuration updated event is posted for the specified configuration.
        m_ConfigEventHandler.waitForEvent(5, 1, 0);
        
        m_ConfigEventHandler = new EventHandlerSyncer(ConfigurationEventConstants.TOPIC_CONFIGURATION_DELETED_EVENT, 
                "(" + ConfigurationEventConstants.EVENT_PROP_PID + "=" + m_Config.getPid() + ")");
        
        //Delete configuration.
        m_Config.delete();
        
        //Verify that a configuration deleted event is posted for the specified configuration.
        m_ConfigEventHandler.waitForEvent(5, 1, 0);
    }
/**
     * Test the configuration event admin bridge.
     * Verify that configuration events are posted to the event admin service.
     */
Test the configuration event admin bridge.
Verify that configuration events are posted to the event admin service.
Test the configuration event admin bridge . Verify that configuration events are posted to the event admin service .
@Test
    public void testConfigurationBridge() throws IOException, InvalidSyntaxException, InterruptedException
    {
        m_Config = m_ConfigAdmin.getConfiguration("some.pid.test.configuration.bridge");
        Dictionary<String, Object> props =  new Hashtable<>();
        String value = "test.value";
        String key = "test.key";
        props.put(key, value);
        m_ConfigEventHandler = new EventHandlerSyncer(ConfigurationEventConstants.TOPIC_CONFIGURATION_UPDATED_EVENT, 
                "(" + ConfigurationEventConstants.EVENT_PROP_PID + "=" + m_Config.getPid() + ")");
        m_Config.update(props);
        m_ConfigEventHandler.waitForEvent(5, 1, 0);
        m_ConfigEventHandler = new EventHandlerSyncer(ConfigurationEventConstants.TOPIC_CONFIGURATION_DELETED_EVENT, 
                "(" + ConfigurationEventConstants.EVENT_PROP_PID + "=" + m_Config.getPid() + ")");
        m_Config.delete();
        m_ConfigEventHandler.waitForEvent(5, 1, 0);
    }
@ Test public void testConfigurationBridge ( ) throws IOException , InvalidSyntaxException , InterruptedException { m_Config = m_ConfigAdmin . getConfiguration ( "some.pid.test.configuration.bridge" ) ; Dictionary < String , Object > props = new Hashtable < > ( ) ; String value = "test.value" ; String key = "test.key" ; props . put ( key , value ) ; m_ConfigEventHandler = new EventHandlerSyncer ( ConfigurationEventConstants . TOPIC_CONFIGURATION_UPDATED_EVENT , "(" + ConfigurationEventConstants . EVENT_PROP_PID + "=" + m_Config . getPid ( ) + ")" ) ; m_Config . update ( props ) ; m_ConfigEventHandler . waitForEvent ( 5 , 1 , 0 ) ; m_ConfigEventHandler = new EventHandlerSyncer ( ConfigurationEventConstants . TOPIC_CONFIGURATION_DELETED_EVENT , "(" + ConfigurationEventConstants . EVENT_PROP_PID + "=" + m_Config . getPid ( ) + ")" ) ; m_Config . delete ( ) ; m_ConfigEventHandler . waitForEvent ( 5 , 1 , 0 ) ; }
Test the configuration event admin bridge.
Test the configuration event admin bridge .
//Update configuration //Verify that a configuration updated event is posted for the specified configuration. //Delete configuration. //Verify that a configuration deleted event is posted for the specified configuration.