Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room')
-rw-r--r--tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room b/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
index cdeb83a8d..630944b2f 100644
--- a/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
+++ b/tests/org.eclipse.etrice.generator.common.tests/models/Bug541775_NoInitialTransition.room
@@ -1,11 +1,15 @@
RoomModel Bug541775_NoInitialTransition {
+ import etrice.api.annotations.TestInstance
+ import etrice.api.types.int32
+
ProtocolClass PDummy {
incoming {
Message in1
}
}
+ // generate and compile this actor
abstract ActorClass ANoInitialTransition {
Structure {
Port p1: PDummy
@@ -21,4 +25,32 @@ RoomModel Bug541775_NoInitialTransition {
}
}
}
+
+ ActorClass AInitialTransition extends ANoInitialTransition {
+ @TestInstance
+ Structure {
+ Attribute caseId: int32
+ }
+ Behavior {
+ ctor '''
+ caseId = etUnit_openAll("log", "Bug541775Test", "org.eclipse.etrice.generator.common.tests.Bug541775", "Bug541775_case");
+ '''
+ dtor '''
+ etUnit_closeAll(caseId);
+ '''
+ StateMachine {
+ State state0 {
+ subgraph {
+ State state0
+ Transition init: initial -> state0
+ }
+ }
+ Transition init0: initial -> state0 {
+ action '''
+ etUnit_testFinished(caseId);
+ '''
+ }
+ }
+ }
+ }
} \ No newline at end of file

Back to the top