-
class
TestExceptionRecord
-
Record for a test exception
This class groups together all items that were involved
when an exception occured during test execution.
Public Members:
-
TestExceptionRecord ( Test* origin, TestException* exception, TestPhase phase = UNKNOWN, bool release = true ) ;
-
Create a new test exception record.
As input is needed the test which has caused the
exception, the test exception itself
and the test phase in which the exception was thrown. If release
is set to true, the exception is deleted when this record is destroyed.
-
virtual ~TestExceptionRecord () ;
-
The destructor.
If release is true, also the exception is deleted.
-
virtual Test* getOrigin () const ;
-
Get the test that caused the exception.
Simple reader method.
-
virtual TestException* getException () const ;
-
Get the exception that is stored in the record.
Simple reader method.
-
virtual TestPhase getPhase () const ;
-
Get the phase the test was in when the exception occurred.
Simple reader method.
-
virtual bool isErrorRecord () const ;
-
Check if the records contains an error.
Returns true when the contained test exception is a test error
(and not only a test failure).
Friends:
-
friend bool less (TestExceptionRecord* lhs, TestExceptionRecord* rhs) ;
-
Function to compare two records.
This function could be used as comparator in STL algorithms.
Its primary sort criteria is the name of the originating test,
the second is the exception type (error of failure) and the third
sort criteria is the exception message.
The Scrunitizer C++ Unit Test Framework
by Bernd Linowski
[Scrunitizer]
[Overview]
[Cookbook]
[Download]
[Index]
[Linosphere]
Page generated: 1 Nov 2000
(C) by Bernd Linowski
scrunitizer@linosphere.de
|