Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPauline DEVILLE2017-08-04 09:24:40 -0400
committerJeremie Tatibouet2017-09-01 07:27:11 -0400
commite03090be3defca0e0e63ba488a7a457c25a530f4 (patch)
tree7142719f6c970449a34868f6a79c17222bf3efd0 /tests/junit
parent48bdd38000b9f133bd6b51fe651e67c8399e164d (diff)
downloadorg.eclipse.papyrus-e03090be3defca0e0e63ba488a7a457c25a530f4.tar.gz
org.eclipse.papyrus-e03090be3defca0e0e63ba488a7a457c25a530f4.tar.xz
org.eclipse.papyrus-e03090be3defca0e0e63ba488a7a457c25a530f4.zip
Bug 365887 - [StateMachineDiagram] The deferred triggers are not
displayed into a state. -Add label for deferred trigger feature -Add parser -regenerate State Machine diagram Change-Id: Id3fc76097c25eb36b49654a1edf360c3ea8393df Signed-off-by: Pauline DEVILLE <pauline.deville@cea.fr>
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
index fc102be334e..9937f63256d 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
@@ -35,6 +35,7 @@ import org.eclipse.papyrus.junit.framework.classification.InteractiveTest;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.CommentEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.ConnectionPointReferenceEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.ConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.DeferrableTriggerEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.DoActivityStateBehaviorStateEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.EntryStateBehaviorEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.ExitStateBehaviorEditPart;
@@ -142,6 +143,16 @@ public class TestSemantic extends BaseTestCase {
}
@Test
+ public void testDeferrableTriggerInState() {
+ IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
+ IGraphicalEditPart entryEP = createChild(DeferrableTriggerEditPart.VISUAL_ID, stateEP);
+
+ EReference expectedFeature = UMLPackage.eINSTANCE.getState_DeferrableTrigger();
+
+ checkListElementReferenceSemantic(entryEP, stateEP, expectedFeature);
+ }
+
+ @Test
@InteractiveTest("Open a dialog")
public void testExitInState() {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());

Back to the top