Public Member Functions
|const char *||getNextLog (const unsigned long timeout)|
|void||attachStubListener (StubListener *pListener)|
|virtual void||setReturnValue (char *method, char *value)|
Protected Member Functions
|char *||getLogBuffer ()|
The stub class implements the basic funtionality of a stub that replaces a class for package test. A log mechanism is provided to store the method calls. The log entries can later be checked by the test suite to see if the correct calls have been made. No checks are made on the size of the log.
We also provide a generic interface that can be used to set members of a stub instance. The implementation is empty since we do not make any assumptions about the members (i.e. the getter methods) that have to be implemented by the instances of stub.
constructors, destructors Constructs a new stub object.
|void ApparatusFramework::Stub< maxLogSize >::attachStubListener||(||StubListener *||pListener||)||
|void ApparatusFramework::Stub< maxLogSize >::clearLog||(||)||
|char * ApparatusFramework::Stub< maxLogSize >::getLogBuffer||(||)||
|const char * ApparatusFramework::Stub< maxLogSize >::getNextLog||(||const unsigned long||timeout||)||
queries Returns a pointer to the current log string.
|timeout||timeout in miliseconds to wait if the log is currently empty. This value will be rounded to the next timer tick.|
|void ApparatusFramework::Stub< maxLogSize >::notify||(||)||
|void ApparatusFramework::Stub< maxLogSize >::setReturnValue||(||char *||method,|
Sets a return value for a given method. Can be used by the TestSuite to force a certain response from the stub.
|method||Pointer to the string of the method, which is asked to return the given value.|
|value||Pointer to the string that represents the new value of the member.|
© 2004-2010 bbv Software Services AG / Apparatus Services