2005/5/9

     
 

class TestConsoleListener

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::tools::aunit::TestConsoleListener Class Reference
[Classes, functions, macros for the ACDK unit test framework]

#include <TestConsoleListener.h>

Inheritance diagram for acdk::tools::aunit::TestConsoleListener:

acdk::lang::Object acdk::tools::aunit::TestListener acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Listen to test and prints to console.


Public Member Functions

 TestConsoleListener (INP(acdk::io::RPrintWriter) out=Nil, int options=ReportAllSummary|ReportTestDetails|ReportTestSuccess)
virtual bool startTest (INP(RTest) test)
 return true if test should be started

virtual void endTest (INP(RTest) test)
virtual void addError (INP(RTest) test, INP(RThrowable) ex)
virtual void addFailure (INP(RTest) test, INP(RTestException) ex)
virtual void addSuccess (INP(RTest) test, INP(RTestExpression) testExpr)

Private Attributes

int _options
acdk::io::RPrintWriter _out


Constructor & Destructor Documentation

acdk::tools::aunit::TestConsoleListener::TestConsoleListener INP(acdk::io::RPrintWriter out = Nil,
int  options = ReportAllSummary|ReportTestDetails|ReportTestSuccess
 

Parameters:
combination of TestReportOptions


Member Function Documentation

virtual void acdk::tools::aunit::TestConsoleListener::addError INP(RTest test,
INP(RThrowable ex
[virtual]
 

Implements acdk::tools::aunit::TestListener.

virtual void acdk::tools::aunit::TestConsoleListener::addFailure INP(RTest test,
INP(RTestException ex
[virtual]
 

Implements acdk::tools::aunit::TestListener.

virtual void acdk::tools::aunit::TestConsoleListener::addSuccess INP(RTest test,
INP(RTestExpression testExpr
[virtual]
 

Implements acdk::tools::aunit::TestListener.

virtual void acdk::tools::aunit::TestConsoleListener::endTest INP(RTest test  )  [virtual]
 

Implements acdk::tools::aunit::TestListener.

virtual bool acdk::tools::aunit::TestConsoleListener::startTest INP(RTest test  )  [virtual]
 

return true if test should be started

Reimplemented from acdk::tools::aunit::TestListener.


Member Data Documentation

int acdk::tools::aunit::TestConsoleListener::_options [private]
 

acdk::io::RPrintWriter acdk::tools::aunit::TestConsoleListener::_out [private]