#include <TestCaseWithEvtCheck.h>
Inheritance diagram for TestCaseWithEvtCheck:
CC_RootObject
class.
Two types of checks are foreseen. The latest event check verifies the type and parameter of the latest event in the repository and the total number of events in the repository. The specific event check verifies the type and parameter of a specific event in the repository.
Definition at line 35 of file TestCaseWithEvtCheck.h.
Public Member Functions | |
TestCaseWithEvtCheck (int testId, char *testName) | |
Set the identifier and the name of the test case. | |
virtual bool | setUpTestCase (void) |
Call the test setup service of the super class. | |
Protected Member Functions | |
unsigned int | getNumberOfEvents (void) const |
Get the current number of events in the repository. | |
unsigned int | getEventRepositorySize (void) const |
Get the size of the event repository (the maximum number of events it can contain). | |
bool | verifyLatestEventHidden (const int line, const unsigned int nEvt, const TD_EventType eventType) |
Perform a latest event check. | |
bool | verifySpecificEventHidden (const int line, const unsigned int n, const TD_EventType eventType) |
Perform a specific event check. |
|
Set the identifier and the name of the test case.
Definition at line 22 of file TestCaseWithEvtCheck.cpp. |
|
Get the size of the event repository (the maximum number of events it can contain).
Definition at line 35 of file TestCaseWithEvtCheck.cpp. |
|
Get the current number of events in the repository.
Definition at line 31 of file TestCaseWithEvtCheck.cpp. |
|
Call the test setup service of the super class.
Reimplemented from TestCaseGenericSetUp. Reimplemented in TestCasePUSFull, and TestCaseWithFactories. Definition at line 27 of file TestCaseWithEvtCheck.cpp. |
|
Perform a latest event check.
More specifically, the following tests are performed on the event repository associated to the
true , otherwise false .
Definition at line 39 of file TestCaseWithEvtCheck.cpp. |
|
Perform a specific event check.
The event to be checked is the n-th event in the buffer. The argument n must lie in the range [N-S+1, N] where N is the total number of events stored in the repository since it was created (return value of method
true , otherwise false .
Definition at line 64 of file TestCaseWithEvtCheck.cpp. |