|
|
TestInvocation |
| Declared In: |
Abstract base class describing an invocation of a test.
TestInvocation is an abstract base class describing the invocation of a test. This base class makes it possible to specify invocations as arguments and instance variables without requiring the spread of template declarations. Generally you will use the macro TEST_INVOCATION to create a TestInvocation, passing it a Test subclass and an instance method. In order to actually invoke a test method, CPlusTest sends the TestInvocation representing it invokeWithTarget and passes that a pointer to the individual Test to invoke the method on.
Invokes the method this invocation represents on the passed Test.
Gets the name of the TestInvocation.
Constructor for the TestInvocation class.
Destructor for the TestInvocation class.
invokeWithTarget |
Invokes the method this invocation represents on the passed Test.
targetThe Test the method this invocation represents should be invoked on.
Invokes the method this invocation represents on the passed Test. This may throw an exception.
name |
Gets the name of the TestInvocation.
public
virtual const std::string& name() = 0;
Returns the name of the TestInvocation.
Gets the name of the TestInvocation. Generally this should be in the form "ClassName::methodName" however this is not required.
TestInvocation |
Constructor for the TestInvocation class.
public
TestInvocation();
Constructor for the TestInvocation class.
~TestInvocation |
Destructor for the TestInvocation class.
public
virtual ~TestInvocation();
Destructor for the TestInvocation class.
Last Updated: 2009-08-12