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

TestCaseDummyDataPoolControlBlock_1 Class Reference

#include <TestCaseDummyDataPoolControlBlock_1.h>

Inheritance diagram for TestCaseDummyDataPoolControlBlock_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the services implemented by the DataPoolControlBlock class.

Since this class is abstract, the check is performed upon its concrete subclass DC_DummyDataPoolControlBlock. One instance of this class is created and the following checks are performed upon it:<ol> The correctness of the class identifier is verified. The number of states, inputs, outputs and parameters read with the getter methods and it is checked that their values are correct. The control block's inputs and outputs are linked to a previously configured DC_BasicDataPool object and it is verified that the control block is configured only when all inputs and outputs are linked. reset() is called and it is verified that the initial values of the state variables are correctly set. The parameter values are set and the correctness of their values is checked. The input values are set and propagate() is invoked. It is verified that both state and outputs are properly updated. The state values are set and the correctness of their values is checked. The following tests are performed only if the non nominal checks are allowed:

  1. An attempt is made to link an input with an illegal index and it is checked that the correct event is generated.
  2. An attempt is made to link an output with an illegal index and it is checked that the correct event is generated.
  3. An attempt is made to set a state value with an illegal index and it is checked that the correct event is generated.
  4. An attempt is made to set a parameter value with an illegal index and it is checked that the correct event is generated.
See also:
DC_DummyDataPoolControlBlock

DataPoolControlBlock

Author:
Roberto Totaro
Version:
1.0

Definition at line 51 of file TestCaseDummyDataPoolControlBlock_1.h.

Public Member Functions

 TestCaseDummyDataPoolControlBlock_1 (void)
 Set the identifier and the name of the test case to, respectively, ID_DUMMYDATAPOOLCONTROLBLOCK*10+1 and "TestCaseDummyDataPoolControlBlock_1".

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseDummyDataPoolControlBlock_1::TestCaseDummyDataPoolControlBlock_1 void   ) 
 

Set the identifier and the name of the test case to, respectively, ID_DUMMYDATAPOOLCONTROLBLOCK*10+1 and "TestCaseDummyDataPoolControlBlock_1".

Definition at line 23 of file TestCaseDummyDataPoolControlBlock_1.cpp.


Member Function Documentation

void TestCaseDummyDataPoolControlBlock_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 28 of file TestCaseDummyDataPoolControlBlock_1.cpp.


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