mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/config/TestXmlConfigurations2ndRun.java
@Test
    public final void testOSGiFactoryConfiguration() throws IOException, InvalidSyntaxException
    {
        ConfigurationAdmin configAdmin = IntegrationTestRunner.getService(ConfigurationAdmin.class);
        assertThat(configAdmin, is(notNullValue()));
        
        Configuration[] configurations = configAdmin.listConfigurations(
                "(service.factoryPid=mil.dod.th.ose.logging.LogFilterImpl*)");
        assertThat(configurations, is(notNullValue()));
        assertThat(configurations.length, is(1));

        assertThat(configurations[0].getProperties(), dictionaryHasEntry("severity", (Object)"Debug"));
        assertThat(configurations[0].getProperties(), dictionaryHasEntry("bundleSymbolicFilter", 
                (Object)"org.apache.felix..*"));
    }
/*
     * Tests that an OSGi factory configuration can be properly set from the configs.xml.
     */
Tests that an OSGi factory configuration can be properly set from the configs.xml.
Tests that an OSGi factory configuration can be properly set from the configs . xml .
@Test
    public final void testOSGiFactoryConfiguration() throws IOException, InvalidSyntaxException
    {
        ConfigurationAdmin configAdmin = IntegrationTestRunner.getService(ConfigurationAdmin.class);
        assertThat(configAdmin, is(notNullValue()));
        Configuration[] configurations = configAdmin.listConfigurations(
                "(service.factoryPid=mil.dod.th.ose.logging.LogFilterImpl*)");
        assertThat(configurations, is(notNullValue()));
        assertThat(configurations.length, is(1));
        assertThat(configurations[0].getProperties(), dictionaryHasEntry("severity", (Object)"Debug"));
        assertThat(configurations[0].getProperties(), dictionaryHasEntry("bundleSymbolicFilter", 
                (Object)"org.apache.felix..*"));
    }
@ Test public final void testOSGiFactoryConfiguration ( ) throws IOException , InvalidSyntaxException { ConfigurationAdmin configAdmin = IntegrationTestRunner . getService ( ConfigurationAdmin . class ) ; assertThat ( configAdmin , is ( notNullValue ( ) ) ) ; Configuration [ ] configurations = configAdmin . listConfigurations ( "(service.factoryPid=mil.dod.th.ose.logging.LogFilterImpl*)" ) ; assertThat ( configurations , is ( notNullValue ( ) ) ) ; assertThat ( configurations . length , is ( 1 ) ) ; assertThat ( configurations [ 0 ] . getProperties ( ) , dictionaryHasEntry ( "severity" , ( Object ) "Debug" ) ) ; assertThat ( configurations [ 0 ] . getProperties ( ) , dictionaryHasEntry ( "bundleSymbolicFilter" , ( Object ) "org.apache.felix..*" ) ) ; }
Tests that an OSGi factory configuration can be properly set from the configs.xml.
Tests that an OSGi factory configuration can be properly set from the configs . xml .