mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestLogFilterImpl.java
@Test
    public void testPropsAfterActivation()
    {
        Map<String, Object> props = new HashMap<>();
        props.put("bundleSymbolicFilter", "mil.dod.th.ose..*");
        props.put("severity", LogLevel.Warning);
        m_SUT.activate(props);
        
        assertThat(m_SUT.getSeverity(), is(LogService.LOG_WARNING));
        
        // mock bundles
        Bundle bundle1 = BundleMocker.mockBundle("mil.dod.th.ose.anything");
        Bundle bundle2 = BundleMocker.mockBundle("org.apache.felix.anything");
        
        assertThat(m_SUT.matches(bundle1), is(true));
        assertThat(m_SUT.matches(bundle2), is(false));
    }
/**
     * Verify the component properties are handle correctly during activation (severity is correct, correct bundles 
     * match). 
     */
Verify the component properties are handle correctly during activation (severity is correct, correct bundles
match).
Verify the component properties are handle correctly during activation ( severity is correct correct bundles match ) .
@Test
    public void testPropsAfterActivation()
    {
        Map<String, Object> props = new HashMap<>();
        props.put("bundleSymbolicFilter", "mil.dod.th.ose..*");
        props.put("severity", LogLevel.Warning);
        m_SUT.activate(props);
        assertThat(m_SUT.getSeverity(), is(LogService.LOG_WARNING));
        Bundle bundle1 = BundleMocker.mockBundle("mil.dod.th.ose.anything");
        Bundle bundle2 = BundleMocker.mockBundle("org.apache.felix.anything");
        assertThat(m_SUT.matches(bundle1), is(true));
        assertThat(m_SUT.matches(bundle2), is(false));
    }
@ Test public void testPropsAfterActivation ( ) { Map < String , Object > props = new HashMap < > ( ) ; props . put ( "bundleSymbolicFilter" , "mil.dod.th.ose..*" ) ; props . put ( "severity" , LogLevel . Warning ) ; m_SUT . activate ( props ) ; assertThat ( m_SUT . getSeverity ( ) , is ( LogService . LOG_WARNING ) ) ; Bundle bundle1 = BundleMocker . mockBundle ( "mil.dod.th.ose.anything" ) ; Bundle bundle2 = BundleMocker . mockBundle ( "org.apache.felix.anything" ) ; assertThat ( m_SUT . matches ( bundle1 ) , is ( true ) ) ; assertThat ( m_SUT . matches ( bundle2 ) , is ( false ) ) ; }
Verify the component properties are handle correctly during activation (severity is correct, correct bundles
 match).
Verify the component properties are handle correctly during activation ( severity is correct correct bundles match ) .
// mock bundles