HistoryWithExitPoint.sctunit 600 B

123456789101112131415161718192021222324252627282930
  1. testclass HistoryWithExitPoint for statechart HistoryWithExitPoint {
  2. @Test
  3. operation historyEntryAfterExit(){
  4. enter
  5. assert active ( HistoryWithExitPoint.mr.A.r.X1 )
  6. raise push
  7. proceed 1 cycle
  8. assert active ( HistoryWithExitPoint.mr.B )
  9. raise back
  10. proceed 1 cycle
  11. assert active ( HistoryWithExitPoint.mr.A.r.X1 )
  12. raise next
  13. proceed 1 cycle
  14. assert active ( HistoryWithExitPoint.mr.A.r.X2 )
  15. raise push
  16. proceed 1 cycle
  17. assert active ( HistoryWithExitPoint.mr.B )
  18. raise back
  19. proceed 1 cycle
  20. assert active ( HistoryWithExitPoint.mr.A.r.X2 )
  21. }
  22. }