Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCaseGenericSetUp Class Reference
[Test Case Support]

#include <TestCaseGenericSetUp.h>

Inheritance diagram for TestCaseGenericSetUp:

TestCase TestCaseBasicDatabase_1 TestCaseBasicDataPool_1 TestCaseByteArrayTelemetryStream_1 TestCaseChecksum_1 TestCaseControlAction_1 TestCaseCycleDataItem16TmStream_1 TestCaseDataItem16TmWord_1 TestCaseDataItem_1 TestCaseDeltaProfile_1 TestCaseDummyConditionalPunctualAction_1 TestCaseDummyConfigurableManoeuvre_1 TestCaseDummyCriticalTelecommand_1 TestCaseDummyDatabase_1 TestCaseDummyDataPool_1 TestCaseDummyFsmState_1 TestCaseDummyObsClock_1 TestCaseDummyPUSTelecommand_1 TestCaseDummyPUSTelemetryPacket_1 TestCaseDummyTelecommand_1 TestCaseDummyTelecommandLoader_1 TestCaseDummyTelemetryPacket_1 TestCaseDummyTelemetryStream_1 TestCaseDummyTracer_1 TestCaseEvent_1 TestCaseEventRepository_1 TestCaseEventRepository_2 TestCaseEventRepository_3 TestCaseFdirCheck_1 TestCaseFileTelemetryStream_1 TestCaseFileTelemetryStream_2 TestCaseForbiddenValueProfile_1 TestCaseFromFsmEvent_1 TestCaseFSM_2 TestCaseFSM_3 TestCaseFsmEvent_1 TestCaseInRangeProfile_1 TestCaseManoeuvrePunctualAction_1 TestCaseMatlabCopyPID_1 TestCaseMatlabDataItemPID_1 TestCaseMatlabDataPoolPID_1 TestCaseMatlabPointerPID_1 TestCaseNestedFsmActivator_1 TestCaseNestedFsmActivatorWithEndState_1 TestCaseNestedFsmActivatorWithExitCheck_1 TestCaseNullProfile_1 TestCaseOutOfRangeProfile_1 TestCasePunctualActionManager_1 TestCaseRawDataItem_1 TestCaseRecoveryAction_1 TestCaseRootObject_1 TestCaseRootObject_2 TestCaseRootObject_3 TestCaseSimpleChangeProfile_1 TestCaseSimplePunctualActionModeManager_1 TestCaseSimpleTelemetryModeManager_1 TestCaseStuckDataProfile_1 TestCaseTelecommandManager_1 TestCaseTelecommandManager_2 TestCaseTelecommandManager_3 TestCaseTelemetryManager_1 TestCaseTestTracer_1 TestCaseUnstableFsmState_1 TestCaseWithEvtCheck List of all members.

Detailed Description

Base class for generic test cases.

This class specializes class TestCase to provide default implementations of the SetUpTestCase and ShutDownTestCase methods that are intended to be suitable for most framework test cases.

Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 24 of file TestCaseGenericSetUp.h.

Public Member Functions

 TestCaseGenericSetUp (int testId, char *testName)
 Set the test case name and ID.

virtual bool setUpTestCase (void)
 Perform basic test initialization actions.

virtual void runTestCase (void)
 Dummy implementation that returns without doing anything.

virtual bool shutDownTestCase (void)
 There are no shut-down actions associated to the basic initialization actions performed in method setUpTestCase.


Constructor & Destructor Documentation

TestCaseGenericSetUp::TestCaseGenericSetUp int  testId,
char *  testName
 

Set the test case name and ID.

Calls the constructor of the super class and returns.

Parameters:
testId the test case ID
testName the test case name as a string

Definition at line 30 of file TestCaseGenericSetUp.cpp.


Member Function Documentation

void TestCaseGenericSetUp::runTestCase void   )  [virtual]
 

Dummy implementation that returns without doing anything.

Subclasses should provide concrete test case implementations.

Implements TestCase.

Reimplemented in TestCaseBasicDatabase_1, TestCaseBasicDataPool_1, TestCaseBasicPUSTcLoader_1, TestCaseBasicPUSTmStream_1, TestCaseBasicReconfigurer_1, TestCaseByteArrayTelemetryStream_1, TestCaseChecksum_1, TestCaseControlAction_1, TestCaseControlList_1, TestCaseCycleDataItem16TmStream_1, TestCaseCyclingPunctualActionModeManager_1, TestCaseCyclingTelemetryModeManager_1, TestCaseDataItem16TmWord_1, TestCaseDataItem_1, TestCaseDataPoolMonitor_1, TestCaseDeltaProfile_1, TestCaseDummyConditionalPunctualAction_1, TestCaseDummyConfigurableManoeuvre_1, TestCaseDummyCopyControlBlock_1, TestCaseDummyCriticalTelecommand_1, TestCaseDummyCriticalTelecommand_2, TestCaseDummyDatabase_1, TestCaseDummyDataItemControlBlock_1, TestCaseDummyDataPool_1, TestCaseDummyDataPoolControlBlock_1, TestCaseDummyFsmState_1, TestCaseDummyManoeuvre_1, TestCaseDummyModeManager_1, TestCaseDummyObsClock_1, TestCaseDummyPointerControlBlock_1, TestCaseDummyPunctualAction_1, TestCaseDummyPUSTelecommand_1, TestCaseDummyPUSTelemetryPacket_1, TestCaseDummyTelecommand_1, TestCaseDummyTelecommandLoader_1, TestCaseDummyTelemetryPacket_1, TestCaseDummyTelemetryStream_1, TestCaseDummyTracer_1, TestCaseEvent_1, TestCaseEventRepository_1, TestCaseEventRepository_2, TestCaseEventRepository_3, TestCaseFdirCheck_1, TestCaseFileTelemetryStream_1, TestCaseFileTelemetryStream_2, TestCaseForbiddenValueProfile_1, TestCaseFromFsmEvent_1, TestCaseFSM_1, TestCaseFSM_2, TestCaseFSM_3, TestCaseFsmEvent_1, TestCaseInRangeProfile_1, TestCaseIntStack_1, TestCaseManoeuvreManager_1, TestCaseManoeuvreManager_2, TestCaseManoeuvreManager_3, TestCaseManoeuvrePunctualAction_1, TestCaseMatlabCopyPID_1, TestCaseMatlabDataItemPID_1, TestCaseMatlabDataPoolPID_1, TestCaseMatlabPointerPID_1, TestCaseNestedFsmActivator_1, TestCaseNestedFsmActivatorWithEndState_1, TestCaseNestedFsmActivatorWithExitCheck_1, TestCaseNullProfile_1, TestCaseOutOfRangeProfile_1, TestCaseProfileList_1, TestCasePunctualActionManager_1, TestCasePUSClearDataReporting_1, TestCasePUSControlDataReporting_1, TestCasePUSDataReportingPacket_1, TestCasePUSDataReportingPacket_2, TestCasePUSDataReportingPacket_3, TestCasePUSEventRepository_1, TestCasePUSMemoryDumpOffset_1, TestCasePUSMemoryLoadAbsolute_1, TestCasePUSMemoryLoadOffset_1, TestCasePUSMemoryLoadOffset_2, TestCasePUSTelemetryModeManager_1, TestCaseRawDataItem_1, TestCaseRecoveryAction_1, TestCaseRootObject_1, TestCaseRootObject_2, TestCaseRootObject_3, TestCaseRootObjectStack_1, TestCaseSampleFullDataPool_1, TestCaseSampleMonitoredDataPool_1, TestCaseSampleR1Database_1, TestCaseSampleR2Database_1, TestCaseSampleR3Database_1, TestCaseSimpleChangeProfile_1, TestCaseSimplePunctualActionModeManager_1, TestCaseSimpleTelemetryModeManager_1, TestCaseStuckDataProfile_1, TestCaseTelecommandManager_1, TestCaseTelecommandManager_2, TestCaseTelecommandManager_3, TestCaseTelemetryManager_1, TestCaseTelemetryManager_2, TestCaseTestPUSConfigurableManoeuvre_1, TestCaseTestTracer_1, and TestCaseUnstableFsmState_1.

Definition at line 82 of file TestCaseGenericSetUp.cpp.

bool TestCaseGenericSetUp::setUpTestCase void   )  [virtual]
 

Perform basic test initialization actions.

More specifically, the following actions are taken:

  • The system list size is initialized
  • An event repository is created and initialized with a dummy OBS clock
  • A dummy data pool is created as an instance of DC_DummyDataPool and is loaded in CC_RootObject as the system data pool.
  • A dummy parameter database is created as an instance of DC_DummyParameterDatabase and is loaded in CC_RootObject as the system parameter database.
  • The event repository is plugged into the CC_RootObject
  • A dummy tracer is created and loaded into the CC_RootObject
Note that the above actions initialize the static part of framework components and should therefore be performed only once (the first time the method is called).

Reimplemented from TestCase.

Reimplemented in TestCasePUSFull, TestCaseWithEvtCheck, and TestCaseWithFactories.

Definition at line 35 of file TestCaseGenericSetUp.cpp.

bool TestCaseGenericSetUp::shutDownTestCase void   )  [virtual]
 

There are no shut-down actions associated to the basic initialization actions performed in method setUpTestCase.

Hence, this method only returns "shut down successful" without performing any actions. In order to preserve compatibility with future releases that might be performing some actions in this method, implementations of setUpTestCase in subclasses should call this method before returning as in the following pseudo-code example:

   ConcreteTestCase::shutDownTestCase() {
     bool outcome = . . . ;  // perform class-specific shut-down
     if (!outcome)
       return outcome;
     else
       return TestCaseGenericSetUp::shutDownTestCase();
 

Reimplemented from TestCase.

Reimplemented in TestCasePUSFull, and TestCaseWithFactories.

Definition at line 86 of file TestCaseGenericSetUp.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved