InEventLifeCycle.sctunit 470 B

1234567891011121314151617181920212223
  1. /**
  2. * @author axel terfloth
  3. */
  4. testgroup InEventLifeCycle for statechart InEventLifeCycle {
  5. /** TODO: we require a probe interface for white box testing */
  6. test eventLifeCycle {
  7. enter
  8. raise e
  9. // assert e // the in event must be set before the cycle
  10. assert i == 0 // e is not consumed yet
  11. cycle
  12. // assert ! e // after the cycle the event is not available anymore
  13. assert i == 1 // within the cycle the in event was consumed
  14. }
  15. }