ConstOnlyDefaultScope.sctunit 501 B

1234567891011121314151617181920212223242526
  1. package tests
  2. testclass ConstOnlyDefaultScope for statechart declarations.ConstOnlyDefaultScope {
  3. /*
  4. * Test is the statechart is entered correctly.
  5. */
  6. operation statechartEntry(){
  7. enter
  8. assert active(declarations.ConstOnlyDefaultScope.main_region.A)
  9. }
  10. /*
  11. * Test is the statechart is entered correctly.
  12. */
  13. operation stateTransition(){
  14. enter
  15. raise A.e : 1
  16. cycle
  17. assert active(declarations.ConstOnlyDefaultScope.main_region.B)
  18. }
  19. }