123456789101112131415161718192021222324252627282930313233343536373839404142 |
- testclass EnterState for statechart EnterState {
-
-
- /* An entry without a specified entry point must enter the region through the default entry.
- */
- @Test
- operation defaultEntry(){
- enter
- assert active(EnterState.r.A)
-
- raise e
- proceed 1 cycle
- assert active(EnterState.r.B.r.E)
- }
- /* An entry with a specified entry point must take the entry node with the specified name.
- */
- @Test
- operation namedEntryThroughNamedTransition(){
- enter
- assert active(EnterState.r.A)
-
- raise f
- proceed 1 cycle
- assert active(EnterState.r.B.r.F)
- }
- /* An entry with a specified entry point that does not match any entry node by name must be taken through the default entry node.
- */
- @Test
- operation namedEntryThroughDefaultTransition(){
- enter
- assert active(EnterState.r.A)
-
- raise g
- proceed 1 cycle
- assert active(EnterState.r.B.r.E)
- }
-
-
- }
-
|