mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestJavaLoggerBridge.java
@Test
    public void testActivateNoFrameworkProp()
    {
        m_Logger.info("test message");
        assertThat(new String(m_OutputStream.toByteArray()), containsString("test message"));
        
        //activate with no framework property found 
        m_SUT.activate(m_Context);
        
        verify(m_LoggingService, never()).log(LogService.LOG_INFO, "test message");
        
        m_Logger.info("no prop message");
        assertThat(new String(m_OutputStream.toByteArray()), not(containsString("no prop message")));
        verify(m_LoggingService).log(LogService.LOG_INFO, "no prop message");       
    }
/**
     * Test that JUL to OSGi logging is enabled even if the framework property is not present.
     */
Test that JUL to OSGi logging is enabled even if the framework property is not present.
Test that JUL to OSGi logging is enabled even if the framework property is not present .
@Test
    public void testActivateNoFrameworkProp()
    {
        m_Logger.info("test message");
        assertThat(new String(m_OutputStream.toByteArray()), containsString("test message"));
        m_SUT.activate(m_Context);
        verify(m_LoggingService, never()).log(LogService.LOG_INFO, "test message");
        m_Logger.info("no prop message");
        assertThat(new String(m_OutputStream.toByteArray()), not(containsString("no prop message")));
        verify(m_LoggingService).log(LogService.LOG_INFO, "no prop message");       
    }
@ Test public void testActivateNoFrameworkProp ( ) { m_Logger . info ( "test message" ) ; assertThat ( new String ( m_OutputStream . toByteArray ( ) ) , containsString ( "test message" ) ) ; m_SUT . activate ( m_Context ) ; verify ( m_LoggingService , never ( ) ) . log ( LogService . LOG_INFO , "test message" ) ; m_Logger . info ( "no prop message" ) ; assertThat ( new String ( m_OutputStream . toByteArray ( ) ) , not ( containsString ( "no prop message" ) ) ) ; verify ( m_LoggingService ) . log ( LogService . LOG_INFO , "no prop message" ) ; }
Test that JUL to OSGi logging is enabled even if the framework property is not present.
Test that JUL to OSGi logging is enabled even if the framework property is not present .
//activate with no framework property found 