2005/5/9

     
 

class TestResult

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

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

#include <TestResult.h>

Inheritance diagram for acdk::tools::aunit::TestResult:

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

Detailed Description

represents a result of a test


Public Member Functions

 TestResult (IN(acdk::io::RStringWriter) out=Nil, IN(acdk::io::RStringWriter) err=Nil)
RTestResultEntryArray getResults ()
virtual bool startTest (IN(RTest) test)
virtual void endTest (IN(RTest) test)
virtual void addError (IN(RTest) test, IN(RThrowable) e)
virtual void addFailure (IN(RTest) test, IN(RTestException) e)
virtual void addSuccess (IN(RTest) test, IN(RTestExpression) expr)
virtual int testErrors ()
virtual int testFailures ()
virtual bool wasSuccessful ()
virtual bool shouldStop ()
virtual void stop ()
void addTestListener (INP(RTestListener) listener)
void removeTestListener (INP(RTestListener) listener)

Private Attributes

RTestListenerArray _listener
bool _success
bool _stop
RTestCollectorListener _testCollector


Constructor & Destructor Documentation

acdk::tools::aunit::TestResult::TestResult IN(acdk::io::RStringWriter out = Nil,
IN(acdk::io::RStringWriter err = Nil
 


Member Function Documentation

virtual void acdk::tools::aunit::TestResult::addError IN(RTest test,
IN(RThrowable e
[virtual]
 

virtual void acdk::tools::aunit::TestResult::addFailure IN(RTest test,
IN(RTestException e
[virtual]
 

virtual void acdk::tools::aunit::TestResult::addSuccess IN(RTest test,
IN(RTestExpression expr
[virtual]
 

void acdk::tools::aunit::TestResult::addTestListener INP(RTestListener listener  ) 
 

virtual void acdk::tools::aunit::TestResult::endTest IN(RTest test  )  [virtual]
 

RTestResultEntryArray acdk::tools::aunit::TestResult::getResults  )  [inline]
 

void acdk::tools::aunit::TestResult::removeTestListener INP(RTestListener listener  ) 
 

virtual bool acdk::tools::aunit::TestResult::shouldStop  )  [inline, virtual]
 

virtual bool acdk::tools::aunit::TestResult::startTest IN(RTest test  )  [virtual]
 

virtual void acdk::tools::aunit::TestResult::stop  )  [inline, virtual]
 

virtual int acdk::tools::aunit::TestResult::testErrors  )  [inline, virtual]
 

virtual int acdk::tools::aunit::TestResult::testFailures  )  [inline, virtual]
 

virtual bool acdk::tools::aunit::TestResult::wasSuccessful  )  [inline, virtual]
 


Member Data Documentation

RTestListenerArray acdk::tools::aunit::TestResult::_listener [private]
 

bool acdk::tools::aunit::TestResult::_stop [private]
 

bool acdk::tools::aunit::TestResult::_success [private]
 

RTestCollectorListener acdk::tools::aunit::TestResult::_testCollector [private]