mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestLoggingService.java
@Test
    public final void testLogWarningThrowable()
    {
        Exception e = new Exception();
        
        // replay
        m_SUT.warning(e, "hello");
        
        // verify
        verify(m_LogService).log(LogService.LOG_WARNING, "hello", e);
        
        // replay
        m_SUT.warning(e, "some %s %d u", "message", 4);
        
        // verify
        verify(m_LogService).log(LogService.LOG_WARNING, "some message 4 u", e);
    }
/**
     * Verify calling the warning method with a throwable will call on log service with the warning log level and pass 
     * the throwable.
     */
Verify calling the warning method with a throwable will call on log service with the warning log level and pass
the throwable.
Verify calling the warning method with a throwable will call on log service with the warning log level and pass the throwable .
@Test
    public final void testLogWarningThrowable()
    {
        Exception e = new Exception();
        m_SUT.warning(e, "hello");
        verify(m_LogService).log(LogService.LOG_WARNING, "hello", e);
        m_SUT.warning(e, "some %s %d u", "message", 4);
        verify(m_LogService).log(LogService.LOG_WARNING, "some message 4 u", e);
    }
@ Test public final void testLogWarningThrowable ( ) { Exception e = new Exception ( ) ; m_SUT . warning ( e , "hello" ) ; verify ( m_LogService ) . log ( LogService . LOG_WARNING , "hello" , e ) ; m_SUT . warning ( e , "some %s %d u" , "message" , 4 ) ; verify ( m_LogService ) . log ( LogService . LOG_WARNING , "some message 4 u" , e ) ; }
Verify calling the warning method with a throwable will call on log service with the warning log level and pass
 the throwable.
Verify calling the warning method with a throwable will call on log service with the warning log level and pass the throwable .
// replay // verify // replay // verify