Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

easyunit::TestPartResult Class Reference

This class contains details about assertion processed during the execution of a Test. More...

#include <testpartresult.h>

List of all members.

Public Member Functions

 TestPartResult (Test *test, const SimpleString &fileName, long lineNumber, const SimpleString &message, testType type)
 Main constructor used to initialize all details about the result of an assertion.
void setNext (TestPartResult *next)
 Set the next TestPartResult in the list.
TestPartResultgetNext () const
 Get the next TestPartResult in the list.
testType getType () const
 Get the type of the TestPartResult.
const SimpleStringgetMessage () const
 Get the message (or condition) of the assertion.
TestgetTest () const
 Get the Test where the assertion is located.
const SimpleStringgetFileName () const
 Get the file name where the assertion is located.
long getLineNumber () const
 Get the line number where the assertion is located.

Protected Attributes

SimpleString message_
Testtest_
SimpleString fileName_
long lineNumber_

Private Attributes

TestPartResultnext_
testType type_


Detailed Description

This class contains details about assertion processed during the execution of a Test.

It contains the line and the file of the assertion, the result (success, failure or error), the condition (or message), and the Test class where the assertion was processed.


Constructor & Destructor Documentation

easyunit::TestPartResult::TestPartResult Test test,
const SimpleString fileName,
long  lineNumber,
const SimpleString message,
testType  type
 

Main constructor used to initialize all details about the result of an assertion.

Parameters:
test The test where the assertion was processed
fileName The file name where the assertion is located
lineNumber The line number where the assertion is located
message The assertion condition or message
type The result of the assertion (failure, success or error)


Member Function Documentation

const SimpleString& easyunit::TestPartResult::getFileName  )  const
 

Get the file name where the assertion is located.

Returns:
The file name where the assertion is located

long easyunit::TestPartResult::getLineNumber  )  const
 

Get the line number where the assertion is located.

Returns:
The line number where the assertion is located

const SimpleString& easyunit::TestPartResult::getMessage  )  const
 

Get the message (or condition) of the assertion.

Returns:
The message (or condition) of the assertion

TestPartResult* easyunit::TestPartResult::getNext  )  const
 

Get the next TestPartResult in the list.

Returns:
The next TestPartResult in the linked list

Test* easyunit::TestPartResult::getTest  )  const
 

Get the Test where the assertion is located.

Returns:
The Test where the assertion is located

testType easyunit::TestPartResult::getType  )  const
 

Get the type of the TestPartResult.

This represents the result of the assertion.

Returns:
The type of the TestPartResult (failure, success or error)

void easyunit::TestPartResult::setNext TestPartResult next  ) 
 

Set the next TestPartResult in the list.

Parameters:
next The next TestPartResult in the linked list


Member Data Documentation

SimpleString easyunit::TestPartResult::fileName_ [protected]
 

long easyunit::TestPartResult::lineNumber_ [protected]
 

SimpleString easyunit::TestPartResult::message_ [protected]
 

TestPartResult* easyunit::TestPartResult::next_ [private]
 

Test* easyunit::TestPartResult::test_ [protected]
 

testType easyunit::TestPartResult::type_ [private]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 4 09:51:25 2005 for EasyUnit by doxygen 1.3.8