OutEventLifeCycle.sctunit 843 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @author axel terfloth
  3. */
  4. testgroup OutEventLifeCycle for statechart OutEventLifeCycle {
  5. /* an outgoing event must be accessible after the cycle that raised the event. */
  6. test availableAfterCycle {
  7. enter
  8. raise e
  9. cycle
  10. assert f
  11. }
  12. /* an outgoing event must be accessible within the cycle that raised the event. */
  13. test availableWithinCycle {
  14. enter
  15. raise e
  16. cycle
  17. assert f_available_in_cycle
  18. }
  19. /* an outgoing event that was raised in one cycle is not available within the next cycle */
  20. test unvailableWithin2ndCycle {
  21. enter
  22. raise e
  23. cycle
  24. cycle
  25. assert ! f_available_in_next_cycle
  26. }
  27. /* an outgoing event that was raised in one cycle is not available after the following cycle */
  28. test unvailableAfter2ndCycle {
  29. enter
  30. raise e
  31. cycle
  32. cycle
  33. assert !f
  34. }
  35. }