mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestLoggingService.java
@Test
    public final void testLogThrowable()
    {
        m_SUT.activate(m_Context);
        
        Exception e = new Exception();
        
        // replay
        m_SUT.log(LogService.LOG_DEBUG, e, "hello");
        
        // verify
        verify(m_LogService).log(LogService.LOG_DEBUG, "hello", e);
        
        // replay
        m_SUT.log(LogService.LOG_DEBUG, e, "some %s %d u", "message", 4);
        
        // verify
        verify(m_LogService).log(LogService.LOG_DEBUG, "some message 4 u", e);
    }
/**
     * Verify logging a throwable will be sent to the OSGi log service.
     */
Verify logging a throwable will be sent to the OSGi log service.
Verify logging a throwable will be sent to the OSGi log service .
@Test
    public final void testLogThrowable()
    {
        m_SUT.activate(m_Context);
        Exception e = new Exception();
        m_SUT.log(LogService.LOG_DEBUG, e, "hello");
        verify(m_LogService).log(LogService.LOG_DEBUG, "hello", e);
        m_SUT.log(LogService.LOG_DEBUG, e, "some %s %d u", "message", 4);
        verify(m_LogService).log(LogService.LOG_DEBUG, "some message 4 u", e);
    }
@ Test public final void testLogThrowable ( ) { m_SUT . activate ( m_Context ) ; Exception e = new Exception ( ) ; m_SUT . log ( LogService . LOG_DEBUG , e , "hello" ) ; verify ( m_LogService ) . log ( LogService . LOG_DEBUG , "hello" , e ) ; m_SUT . log ( LogService . LOG_DEBUG , e , "some %s %d u" , "message" , 4 ) ; verify ( m_LogService ) . log ( LogService . LOG_DEBUG , "some message 4 u" , e ) ; }
Verify logging a throwable will be sent to the OSGi log service.
Verify logging a throwable will be sent to the OSGi log service .
// replay // verify // replay // verify