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

TestCaseDummyCopyControlBlock_1 Class Reference

#include <TestCaseDummyCopyControlBlock_1.h>

Inheritance diagram for TestCaseDummyCopyControlBlock_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the services implemented by the CopyControlBlock class.

Since this class is abstract, the check is performed upon its concrete subclass DC_DummyCopyControlBlock. 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. It is verified that the control block is configured at creation.
  3. The number of states, inputs, outputs and parameters is read with the getter methods and it is checked that their values are correct.
  4. It is verified that the initial values of the state and inputs 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 output values are set and the correctness of their values is checked.
  8. The state values are set and the correctness of their values is checked.
  9. 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.
  10. Non-nominal behaviour check: an attempt is made to set an output value with an illegal output index and it is checked that the correct event is generated.
  11. Non-nominal behaviour check: an attempt is made to set an input value with an illegal input index and it is checked that the correct event is generated.
  12. 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.
  13. The reset() method is invoked and it is verified that the states and inputs are reset to their default values.
See also:
DC_DummyCopyControlBlock

CopyControlBlock

Author:
Roberto Totaro, Alessandro Pasetti
Version:
1.2

Definition at line 54 of file TestCaseDummyCopyControlBlock_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseDummyCopyControlBlock_1::TestCaseDummyCopyControlBlock_1 void   ) 
 

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

Definition at line 22 of file TestCaseDummyCopyControlBlock_1.cpp.


Member Function Documentation

void TestCaseDummyCopyControlBlock_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 27 of file TestCaseDummyCopyControlBlock_1.cpp.


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