UTF-X, Unit Testing Framework - Xslt

utfx.printers
Class ResultLogger

java.lang.Object
  extended by utfx.printers.ResultLogger
All Implemented Interfaces:
junit.framework.TestListener

public class ResultLogger
extends java.lang.Object
implements junit.framework.TestListener

This class is an implementation of junit TestListerner. This class uses the log4j logging facility to log run test progress including failures and errors.

Copyright © 2004 - University of Southern Queensland.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Source: /cvs/utf-x/framework/src/java/utfx/printers/ResultLogger.java,v $

Version:
$Revision: 1.1 $ $Date: 2005/03/09 03:53:16 $ $Name: release_0_0_8_alpha $
Author:
Jacek Radajewski

Field Summary
(package private)  org.apache.log4j.Logger log
           
 
Constructor Summary
ResultLogger()
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
           
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
           
 void endTest(junit.framework.Test test)
           
 void startTest(junit.framework.Test test)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

org.apache.log4j.Logger log
Constructor Detail

ResultLogger

public ResultLogger()
Method Detail

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Specified by:
addError in interface junit.framework.TestListener

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Specified by:
addFailure in interface junit.framework.TestListener

endTest

public void endTest(junit.framework.Test test)
Specified by:
endTest in interface junit.framework.TestListener

startTest

public void startTest(junit.framework.Test test)
Specified by:
startTest in interface junit.framework.TestListener

UTF-X, Unit Testing Framework - Xslt