Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/link/association/TestLinkCreationAssociationCompositeDirectedForSources.java')
-rw-r--r--tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/link/association/TestLinkCreationAssociationCompositeDirectedForSources.java65
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/link/association/TestLinkCreationAssociationCompositeDirectedForSources.java b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/link/association/TestLinkCreationAssociationCompositeDirectedForSources.java
new file mode 100644
index 00000000000..57d6fe4c4da
--- /dev/null
+++ b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/link/association/TestLinkCreationAssociationCompositeDirectedForSources.java
@@ -0,0 +1,65 @@
+package org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.creation.link.association;
+
+import java.util.HashMap;
+
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.creation.link.AbstractLinkCreationForSourcesTest;
+import org.junit.BeforeClass;
+
+/**
+ * JUnit tests for Association creation test (via palette tools).
+ */
+public class TestLinkCreationAssociationCompositeDirectedForSources extends AbstractLinkCreationForSourcesTest {
+
+ @BeforeClass
+ public static void initToolID() throws Exception {
+ toolID = "blockdefinition.tool.association_composite_directed";
+ }
+
+ @BeforeClass
+ public static void initExpectedResults() throws Exception {
+
+ // Initialize source creation results
+ isCreationAllowed = new HashMap<View, Boolean>();
+ isCreationAllowed.put(actorSourceView, false);
+ isCreationAllowed.put(blockSourceView, true);
+ isCreationAllowed.put(constraintBlockSourceView, true);
+ isCreationAllowed.put(dataTypeSourceView, true);
+ isCreationAllowed.put(dimensionSourceView, false);
+ isCreationAllowed.put(enumerationSourceView, true);
+ isCreationAllowed.put(flowSpecificationSourceView, true);
+ isCreationAllowed.put(interfaceSourceView, true);
+ isCreationAllowed.put(primitiveTypeSourceView, true);
+ isCreationAllowed.put(signalSourceView, true);
+ isCreationAllowed.put(unitSourceView, false);
+ isCreationAllowed.put(valueTypeSourceView, true);
+
+ isCreationAllowed.put(commentSourceView, false);
+ isCreationAllowed.put(commentCNSourceView, false);
+ isCreationAllowed.put(constraintSourceView, false);
+ isCreationAllowed.put(constraintCNSourceView, false);
+ isCreationAllowed.put(instanceSpecSourceView, false);
+ isCreationAllowed.put(instanceSpecCNSourceView, false);
+ isCreationAllowed.put(modelSourceView, false);
+ isCreationAllowed.put(modelCNSourceView, false);
+ isCreationAllowed.put(packageSourceView, false);
+ isCreationAllowed.put(packageCNSourceView, false);
+
+ isCreationAllowed.put(slotSourceView, false);
+
+ isCreationAllowed.put(propertySourceView, false);
+ isCreationAllowed.put(portSourceView, false);
+ isCreationAllowed.put(flowportSourceView, false);
+ isCreationAllowed.put(partSourceView, false);
+ isCreationAllowed.put(referenceSourceView, false);
+ isCreationAllowed.put(valueSourceView, false);
+ isCreationAllowed.put(operationSourceView, false);
+ isCreationAllowed.put(receptionSourceView, false);
+ isCreationAllowed.put(constraintCLNSourceView, false);
+ isCreationAllowed.put(constraintPropertySourceView, false);
+ isCreationAllowed.put(flowPropertySourceView, false);
+ isCreationAllowed.put(enumerationLiteralSourceView, false);
+
+ }
+
+}

Back to the top