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

TestCaseFromFsmEvent_1 Class Reference

#include <TestCaseFromFsmEvent_1.h>

Inheritance diagram for TestCaseFromFsmEvent_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the functionalities offered by the DC_FromFsmEvent class.

One FSM instance is created and configured with 4 dummy FsmStates (states 0 to 3). One FromFsmEvents is then instantiated and the following specific tests are then performed:

  1. The correctness of the class identifier is verified.
  2. It is verified that the object configuration service on the FromFsmEvents reports "object not configured".
  3. The FromFsmEvents is configured with a target FSM, a starting and target state and it is verified that the configuration operation on the class-specific part of the object (the definition of the starting state) is correctly executed.
  4. It is verified that the object configuration service on the FromFsmEvents reports "object configured".
  5. The FSM is placed in a state different from the starting state of the FromFsmEvents, the latter is fired and it is verified that the state of the FSM has not changed.
  6. The FSM is placed in a state equal to the starting state of the FromFsmEvents, the latter is fired and it is verified that the FSM performs a transition to the target state of the FromFsmEvents.
See also:
CC_FSM

DC_FromFsmEvent

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

Definition at line 45 of file TestCaseFromFsmEvent_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseFromFsmEvent_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 24 of file TestCaseFromFsmEvent_1.cpp.


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