jetbrains.buildServer.messages
Class DefaultJUnitLogger

java.lang.Object
  extended by jetbrains.buildServer.messages.DefaultJUnitLogger
All Implemented Interfaces:
JUnitLogger

public class DefaultJUnitLogger
extends java.lang.Object
implements JUnitLogger

Convenience class for logging test events. It acts as an adapter to BuildProgressLogger, i.e. converts given parameters to appropriate message objects and passes them to the BuildProgressLogger.


Constructor Summary
DefaultJUnitLogger(BuildProgressLogger progressLogger)
           
 
Method Summary
 void flush()
           
 void logComparisonFailure(java.lang.String testName, java.lang.Throwable e, java.lang.String expected, java.lang.String actual)
           
 void logSuiteFinished(java.lang.String name)
           
 void logSuiteFinished(java.lang.String name, java.util.Date timestamp)
           
 void logSuiteStarted(java.lang.String name)
           
 void logSuiteStarted(java.lang.String name, java.util.Date timestamp)
           
 void logTestFailed(java.lang.String testName, java.lang.String message, java.lang.String stackTrace)
           
 void logTestFailed(java.lang.String testName, java.lang.Throwable e)
           
 void logTestFinished(java.lang.String name)
           
 void logTestFinished(java.lang.String name, java.util.Date timestamp)
           
 void logTestIgnored(java.lang.String name, java.lang.String reason)
           
 void logTestStarted(java.lang.String name)
           
 void logTestStarted(java.lang.String name, java.util.Date timestamp)
           
 void logTestStdErr(java.lang.String testName, java.lang.String out)
           
 void logTestStdOut(java.lang.String testName, java.lang.String out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJUnitLogger

public DefaultJUnitLogger(BuildProgressLogger progressLogger)
Method Detail

logTestStarted

public void logTestStarted(java.lang.String name)
Specified by:
logTestStarted in interface JUnitLogger

logTestStarted

public void logTestStarted(java.lang.String name,
                           java.util.Date timestamp)
Specified by:
logTestStarted in interface JUnitLogger

logTestFinished

public void logTestFinished(java.lang.String name)
Specified by:
logTestFinished in interface JUnitLogger

logTestFinished

public void logTestFinished(java.lang.String name,
                            java.util.Date timestamp)
Specified by:
logTestFinished in interface JUnitLogger

logTestIgnored

public void logTestIgnored(java.lang.String name,
                           java.lang.String reason)
Specified by:
logTestIgnored in interface JUnitLogger

logSuiteStarted

public void logSuiteStarted(java.lang.String name)
Specified by:
logSuiteStarted in interface JUnitLogger

logSuiteStarted

public void logSuiteStarted(java.lang.String name,
                            java.util.Date timestamp)
Specified by:
logSuiteStarted in interface JUnitLogger

logSuiteFinished

public void logSuiteFinished(java.lang.String name)
Specified by:
logSuiteFinished in interface JUnitLogger

logSuiteFinished

public void logSuiteFinished(java.lang.String name,
                             java.util.Date timestamp)
Specified by:
logSuiteFinished in interface JUnitLogger

logTestStdOut

public void logTestStdOut(java.lang.String testName,
                          java.lang.String out)
Specified by:
logTestStdOut in interface JUnitLogger

logTestStdErr

public void logTestStdErr(java.lang.String testName,
                          java.lang.String out)
Specified by:
logTestStdErr in interface JUnitLogger

logComparisonFailure

public void logComparisonFailure(java.lang.String testName,
                                 java.lang.Throwable e,
                                 java.lang.String expected,
                                 java.lang.String actual)
Specified by:
logComparisonFailure in interface JUnitLogger

logTestFailed

public void logTestFailed(java.lang.String testName,
                          java.lang.Throwable e)
Specified by:
logTestFailed in interface JUnitLogger

logTestFailed

public void logTestFailed(java.lang.String testName,
                          java.lang.String message,
                          java.lang.String stackTrace)
Specified by:
logTestFailed in interface JUnitLogger

flush

public void flush()
Specified by:
flush in interface JUnitLogger