junit.log4j
Class LoggedTestResult

java.lang.Object
  |
  +--junit.framework.TestResult
        |
        +--junit.log4j.LoggedTestResult

public class LoggedTestResult
extends junit.framework.TestResult

Test result that joins JUnit and Log4J.

Created: Sat Nov 03 19:03:14 2001

Version:
$Revision: 1.4 $
Author:
Wolfgang Reissenberger

Fields inherited from class junit.framework.TestResult
fErrors, fFailures, fListeners, fRunTests
 
Constructor Summary
LoggedTestResult()
          Creates a new LoggedTestResult instance.
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable throwable)
          Calls TestResult.addError(test, throwable) and additionally adds the error as logging event to the appender singleton.
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError failure)
          Calls TestResult.addFailure(test, throwable) and additionally adds the error as logging event to the appender singleton.
 
Methods inherited from class junit.framework.TestResult
addListener, endTest, errorCount, errors, failureCount, failures, removeListener, run, runCount, runProtected, shouldStop, startTest, stop, wasSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedTestResult

public LoggedTestResult()
Creates a new LoggedTestResult instance.
Method Detail

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable throwable)
Calls TestResult.addError(test, throwable) and additionally adds the error as logging event to the appender singleton.
Overrides:
addError in class junit.framework.TestResult
Parameters:
test - the test receiving the error
throwable - a value of type 'Throwable'

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError failure)
Calls TestResult.addFailure(test, throwable) and additionally adds the error as logging event to the appender singleton.
Overrides:
addFailure in class junit.framework.TestResult
Parameters:
test - the test receiving the failure
failure - assertion failure


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.