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/custom/TestNodeCreationOnDimension.java')
-rw-r--r--tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/custom/TestNodeCreationOnDimension.java182
1 files changed, 182 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/custom/TestNodeCreationOnDimension.java b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/custom/TestNodeCreationOnDimension.java
new file mode 100644
index 00000000000..607f2928808
--- /dev/null
+++ b/tests/junit/plugins/sysml/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/creation/custom/TestNodeCreationOnDimension.java
@@ -0,0 +1,182 @@
+package org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.creation.custom;
+
+import static org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.utils.EditorUtils.*;
+
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.AbstractTest;
+import org.eclipse.papyrus.sysml.diagram.common.utils.SysMLGraphicalTypes;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * JUnit tests for element creation test (via palette tools) in a Dimension.
+ */
+public class TestNodeCreationOnDimension extends AbstractTest {
+
+ public static View containerView;
+
+ @BeforeClass
+ public static void prepareContainerForTest() throws Exception {
+ try {
+ // force inherited provider loading...
+ createFromPalette("blockdefinition.tool.package", getDiagramView(), true);
+ //
+
+ createFromPalette("blockdefinition.tool.dimension", getDiagramView(), true);
+ containerView = ViewUtil.getChildBySemanticHint(getDiagramView(), SysMLGraphicalTypes.SHAPE_SYSML_DIMENSION_AS_CLASSIFIER_ID);
+
+ if(containerView == null) {
+ throw new Exception("Unable to prepare container for test.");
+ }
+
+ } catch (Exception e) {
+ throw new Exception("Unable to prepare container for test.");
+ }
+ }
+
+ @Test
+ public void createActor() throws Exception {
+ createFromPalette("blockdefinition.tool.actor", containerView, false);
+ }
+
+ @Test
+ public void createBlock() throws Exception {
+ createFromPalette("blockdefinition.tool.block", containerView, false);
+ }
+
+ @Test
+ public void createComment() throws Exception {
+ createFromPalette("blockdefinition.tool.comment", containerView, false);
+ }
+
+ @Test
+ public void createConstraint() throws Exception {
+ createFromPalette("blockdefinition.tool.constraint", containerView, false);
+ }
+
+ @Test
+ public void createConstraintBlock() throws Exception {
+ createFromPalette("blockdefinition.tool.constraintblock", containerView, false);
+ }
+
+ @Test
+ public void createConstraintProperty() throws Exception {
+ createFromPalette("blockdefinition.tool.constraintproperty", containerView, false);
+ }
+
+ @Test
+ public void createDataType() throws Exception {
+ createFromPalette("blockdefinition.tool.datatype", containerView, false);
+ }
+
+ @Test
+ public void createDimension() throws Exception {
+ createFromPalette("blockdefinition.tool.dimension", containerView, false);
+ }
+
+ @Test
+ public void createEnumeration() throws Exception {
+ createFromPalette("blockdefinition.tool.enumeration", containerView, false);
+ }
+
+ @Test
+ public void createEnumerationLiteral() throws Exception {
+ createFromPalette("blockdefinition.tool.enumerationliteral", containerView, false);
+ }
+
+ @Test
+ public void createFlowPort() throws Exception {
+ createFromPalette("blockdefinition.tool.flowport", containerView, false);
+ }
+
+ @Test
+ public void createFlowProperty() throws Exception {
+ createFromPalette("blockdefinition.tool.flowproperty", containerView, false);
+ }
+
+ @Test
+ public void createFlowSpecification() throws Exception {
+ createFromPalette("blockdefinition.tool.flowspecification", containerView, false);
+ }
+
+ @Test
+ public void createInstanceSpecification() throws Exception {
+ createFromPalette("blockdefinition.tool.instancespecification", containerView, false);
+ }
+
+ @Test
+ public void createInterface() throws Exception {
+ createFromPalette("blockdefinition.tool.interface", containerView, false);
+ }
+
+ @Test
+ public void createModel() throws Exception {
+ createFromPalette("blockdefinition.tool.model", containerView, false);
+ }
+
+ @Test
+ public void createOperation() throws Exception {
+ createFromPalette("blockdefinition.tool.operation", containerView, false);
+ }
+
+ @Test
+ public void createPackage() throws Exception {
+ createFromPalette("blockdefinition.tool.package", containerView, false);
+ }
+
+ @Test
+ public void createPart() throws Exception {
+ createFromPalette("blockdefinition.tool.part", containerView, false);
+ }
+
+ @Test
+ public void createPort() throws Exception {
+ createFromPalette("blockdefinition.tool.port", containerView, false);
+ }
+
+ @Test
+ public void createPrimitiveType() throws Exception {
+ createFromPalette("blockdefinition.tool.primitivetype", containerView, false);
+ }
+
+ @Test
+ public void createProperty() throws Exception {
+ createFromPalette("blockdefinition.tool.property", containerView, false);
+ }
+
+ @Test
+ public void createReception() throws Exception {
+ createFromPalette("blockdefinition.tool.reception", containerView, false);
+ }
+
+ @Test
+ public void createReference() throws Exception {
+ createFromPalette("blockdefinition.tool.reference", containerView, false);
+ }
+
+ @Test
+ public void createSignal() throws Exception {
+ createFromPalette("blockdefinition.tool.signal", containerView, false);
+ }
+
+ @Test
+ public void createSlot() throws Exception {
+ createFromPalette("blockdefinition.tool.slot", containerView, false);
+ }
+
+ @Test
+ public void createUnit() throws Exception {
+ createFromPalette("blockdefinition.tool.unit", containerView, false);
+ }
+
+ @Test
+ public void createValue() throws Exception {
+ createFromPalette("blockdefinition.tool.value", containerView, false);
+ }
+
+ @Test
+ public void createValueType() throws Exception {
+ createFromPalette("blockdefinition.tool.valuetype", containerView, false);
+ }
+}

Back to the top