123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package tests
- /**
- * These test cases check the precedence issues that occured with the construction of the trigger condition
- * that consists of the trigger and guard part.
- * The condition for a local reaction and transition depends on the trigger and guard part.
- */
- testclass TriggerExpressionPrecedence for statechart expressions.TriggerExpressionPrecedence {
-
-
- /** If a trigger is specified and not active then the trigger condition should not become true. */
- operation unsatisfiedTriggerAndFGuardFalseOrFalse(){
- enter
-
- c1 = false
- c2 = false
-
- cycle
-
- assert ! e1_transition
- }
- /** If a trigger is specified and not active then the trigger condition should not become true. */
- operation unsatisfiedTriggerAndFGuardTrueOrFalse(){
- enter
-
- c1 = true
- c2 = false
-
- cycle
-
- assert ! e1_transition
- }
- /** If a trigger is specified and not active then the trigger condition should not become true. */
- operation unsatisfiedTriggerAndFGuardFalseOrTrue(){
- enter
-
- c1 = false
- c2 = true
-
- cycle
-
- assert ! e1_transition
- }
- /** If a trigger is specified and not active then the trigger condition should not become true. */
- operation unsatisfiedTriggerAndFGuardTrueOrTrue(){
- enter
-
- c1 = true
- c2 = true
-
- cycle
-
- assert ! e1_transition
- }
- }
|