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

TestCaseDummyPointerControlBlock_1 Class Reference

#include <TestCaseDummyPointerControlBlock_1.h>

Inheritance diagram for TestCaseDummyPointerControlBlock_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the services implemented by the PointerControlBlock class.

Since this class is abstract, the check is performed upon its concrete subclass DC_DummyPointerControlBlock. One instance of this class is created and the following checks are performed upon it:

  1. The correctness of the class identifier is verified.
  2. The number of states, inputs, outputs and parameters read with the getter methods and it is checked that their values are correct.
  3. The input and output variables are linked to the control block and it is verified that the object is configured only when all the variables are linked.
  4. reset() is called and it is verified that the initial values of the state variables are correctly set.
  5. The parameter values are set and the correctness of their values is checked.
  6. The input values are set and propagate() is invoked. It is verified that both state and outputs are properly updated.
  7. The state values are set and the correctness of their values is checked.
  8. Non-nominal behaviour check: an attempt is made to set a state value with an illegal state index and it is checked that the correct event is generated.
  9. Non-nominal behaviour check: an attempt is made to set a parameter value with an illegal parameter index and it is checked that the correct event is generated.
See also:
DC_DummyPointerControlBlock

PointerControlBlock

Author:
Roberto Totaro
Version:
1.0

Definition at line 43 of file TestCaseDummyPointerControlBlock_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseDummyPointerControlBlock_1::TestCaseDummyPointerControlBlock_1 void   ) 
 

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

Definition at line 22 of file TestCaseDummyPointerControlBlock_1.cpp.


Member Function Documentation

void TestCaseDummyPointerControlBlock_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 28 of file TestCaseDummyPointerControlBlock_1.cpp.


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