Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorytanguy2009-11-27 15:23:43 +0000
committerytanguy2009-11-27 15:23:43 +0000
commit439a935ac6903dcef207bc78b66429ffcf117fba (patch)
tree9932a6eb98e4b48918c703f6c6404dc8379986c3 /tests
parent55c1f9d643d6fc4d06a0c654829831397e398a39 (diff)
downloadorg.eclipse.papyrus-439a935ac6903dcef207bc78b66429ffcf117fba.tar.gz
org.eclipse.papyrus-439a935ac6903dcef207bc78b66429ffcf117fba.tar.xz
org.eclipse.papyrus-439a935ac6903dcef207bc78b66429ffcf117fba.zip
NEW - bug 296327: [SysML] SysML static profile implementation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296327
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/.classpath7
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/.project28
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/META-INF/MANIFEST.MF23
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/build.properties12
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/plugin.properties2
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.di276
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.uml36
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.di240
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.uml28
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.di276
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.uml36
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.di258
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.uml31
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.di284
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.uml38
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.di290
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.uml44
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.di284
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.uml38
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.di2100
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.uml45
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.di244
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.uml30
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ActivitiesTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ContinuousTest.java81
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ControlOperatorTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/DiscreteTest.java81
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/NoBufferTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OptionnalTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OverwriteTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ProbabilityTest.java98
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/RateTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateActivityPartitionTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocatedTest.java237
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocationsTests.java57
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BindingConnectorTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlockTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlocksTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ConnectorPropertyTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DimensionTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DistributedPropertyTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/NestedConnectorEndTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ParticipantPropertyTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/PropertySpecificTypeTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/UnitTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ValueTypeTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintBlockTest.java82
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintPropertyTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintsTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/interactions/tests/InteractionsTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ConformTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ModelelementsTests.java57
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ProblemTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/RationaleTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/SysmlAllTests.java63
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewPointTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewTest.java184
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPortTest.java238
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPropertyTest.java182
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowSpecificationTest.java99
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/ItemFlowTest.java97
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/PortandflowsTests.java58
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/CopyTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/DeriveReqtTest.java98
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementRelatedTest.java405
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementTest.java619
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementsTests.java59
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/SatisfyTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/TestCaseTest.java218
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/VerifyTest.java96
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/statemachines/tests/StatemachinesTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlAllTests.java64
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/usecases/tests/UsecasesTests.java56
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/StdResource.java26
-rw-r--r--tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/SysMLTestResources.java144
78 files changed, 7132 insertions, 0 deletions
diff --git a/tests/org.eclipse.papyrus.sysml.tests/.classpath b/tests/org.eclipse.papyrus.sysml.tests/.classpath
new file mode 100644
index 00000000000..45f024e850e
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/.project b/tests/org.eclipse.papyrus.sysml.tests/.project
new file mode 100644
index 00000000000..68de475b9e2
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.papyrus.sysml.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..656ad6dd7c3
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Thu Nov 26 17:15:21 CET 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/tests/org.eclipse.papyrus.sysml.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.papyrus.sysml.tests/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..249920b3a92
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,23 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.sysml.tests;singleton:=true
+Bundle-Version: 0.7.0.qualifier
+Bundle-ClassPath: .
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Export-Package: org.eclipse.papyrus.sysml.allocations.tests,
+ org.eclipse.papyrus.sysml.modelelements.tests,
+ org.eclipse.papyrus.sysml.portandflows.tests,
+ org.eclipse.papyrus.sysml.requirements.tests,
+ org.eclipse.papyrus.sysml.utils
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.papyrus.sysml;visibility:=reexport,
+ org.eclipse.emf.ecore;visibility:=reexport,
+ org.eclipse.uml2.uml;visibility:=reexport,
+ org.eclipse.emf.ecore.xmi;visibility:=reexport,
+ org.junit;visibility:=reexport,
+ org.eclipse.papyrus.uml.standard;bundle-version="0.7.0",
+ org.eclipse.papyrus.umlutils;bundle-version="0.7.0"
+Eclipse-LazyStart: true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/tests/org.eclipse.papyrus.sysml.tests/build.properties b/tests/org.eclipse.papyrus.sysml.tests/build.properties
new file mode 100644
index 00000000000..e9d6098b4dc
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/build.properties
@@ -0,0 +1,12 @@
+
+# <copyright>
+# </copyright>
+#
+# $Id$
+
+bin.includes = .,\
+ META-INF/,\
+ plugin.properties
+jars.compile.order = .
+source.. = src/
+output.. = bin/
diff --git a/tests/org.eclipse.papyrus.sysml.tests/plugin.properties b/tests/org.eclipse.papyrus.sysml.tests/plugin.properties
new file mode 100644
index 00000000000..dc960fcff63
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/plugin.properties
@@ -0,0 +1,2 @@
+pluginName = Tests for static version of the SysML profile
+providerName = Papyrus Project
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.di2
new file mode 100644
index 00000000000..bee187d70e1
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.di2
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Allocate_TEST.uml#_zIq0AA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Allocate_TEST.uml#_zhGiIA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:125" graphEdge="//@contained.5"/>
+ <anchorage position="555:132" graphEdge="//@contained.6"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Allocate_TEST.uml#_zx8agA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:125" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Allocate_TEST.uml#_0BSeEA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:271" graphEdge="//@contained.6"/>
+ <anchorage position="750:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Allocate_TEST.uml#_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.0 //@contained.2/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocate"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-2:-18" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Allocate_TEST.uml#_6vCvgA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.1 //@contained.3/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocate"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:-1" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Allocate_TEST.uml#_CwrqsA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.4/@anchorage.0 //@contained.3/@anchorage.1">
+ <property key="PropStereoDisplay" value="SysML::Allocations::Allocate"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:21" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Allocate_TEST.uml#_DUvaAA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Allocate_TEST.uml#_wJfGRw_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.uml
new file mode 100644
index 00000000000..08f6af88033
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Allocate_TEST.uml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Allocations="http://www.papyrusuml.org/SysML/Allocations/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" xsi:schemaLocation="http://www.papyrusuml.org/SysML/Allocations/1 http://www.papyrusuml.org/SysML/1#//allocations">
+ <uml:Model xmi:id="_wJfGRw_xEd2mbaTvSwUWQw" name="SysML_Allocate_TEST">
+ <packageImport xmi:id="_wJfGSA_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zIq0AA_xEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zhGiIA_xEd2mbaTvSwUWQw" name="Class_1" clientDependency="_6vCvgA_xEd2mbaTvSwUWQw _CwrqsA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zx8agA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0BSeEA_xEd2mbaTvSwUWQw" name="Class_3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0V2Y0A_xEd2mbaTvSwUWQw" name="Class_4" clientDependency="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_6vCvgA_xEd2mbaTvSwUWQw" name="FromClass_1toClass_2" supplier="_zx8agA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_CwrqsA_yEd2mbaTvSwUWQw" name="FromClass_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_DUvaAA_yEd2mbaTvSwUWQw" name="FromClass_4toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <profileApplication xmi:id="_wJfGSQ_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_wJfGSg_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_yC7T8A_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_yDFE8A_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//allocations"/>
+ </eAnnotations>
+ <appliedProfile href="../../../plugin/com.cea.papyrus.uml4sysml.extension/model/SysML.profile.uml#_NxdG4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Allocations:Allocated xmi:id="_8y6rwA_xEd2mbaTvSwUWQw" base_NamedElement="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocate xmi:id="_-XgD8A_xEd2mbaTvSwUWQw" base_Abstraction="_6vCvgA_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocated xmi:id="_Bw6PwA_yEd2mbaTvSwUWQw" base_NamedElement="_zIq0AA_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocated xmi:id="_Bw6PwQ_yEd2mbaTvSwUWQw" base_NamedElement="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocated xmi:id="_Bw6Pwg_yEd2mbaTvSwUWQw" base_NamedElement="_0BSeEA_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocated xmi:id="_Bw6Pww_yEd2mbaTvSwUWQw" base_NamedElement="_zx8agA_xEd2mbaTvSwUWQw"/>
+ <Allocations:Allocate xmi:id="_E85qoA_yEd2mbaTvSwUWQw" base_Abstraction="_CwrqsA_yEd2mbaTvSwUWQw"/>
+ <Allocations:Allocate xmi:id="_E85qoQ_yEd2mbaTvSwUWQw" base_Abstraction="_DUvaAA_yEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.di2
new file mode 100644
index 00000000000..88fd8a7f707
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.di2
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="260:70" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Copy_TEST.uml#_H7ms4A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="360:101" graphEdge="//@contained.2"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="519:70" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Copy_TEST.uml#_IRqccA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="518:101" graphEdge="//@contained.2"/>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.0/@anchorage.0 //@contained.1/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Copy"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-3:-18" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Copy_TEST.uml#_JHml8A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="708:70" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Copy_TEST.uml#_J4U4QA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Copy_TEST.uml#_FjBFMQ_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.uml
new file mode 100644
index 00000000000..b940ec80eac
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Copy_TEST.uml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_FjBFMQ_xEd2mbaTvSwUWQw" name="SysML_Copy_TEST">
+ <packageImport xmi:id="_FjBFMg_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_H7ms4A_xEd2mbaTvSwUWQw" name="Class_0" clientDependency="_JHml8A_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_IRqccA_xEd2mbaTvSwUWQw" name="Class_1"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_JHml8A_xEd2mbaTvSwUWQw" name="FromClass_0toClass_1" supplier="_IRqccA_xEd2mbaTvSwUWQw" client="_H7ms4A_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_J4U4QA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <profileApplication xmi:id="_FjBFMw_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_FjBFNA_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_He2fcA_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_He_pYA_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Requirements:Requirement xmi:id="_LZoS8A_xEd2mbaTvSwUWQw" base_Class="_J4U4QA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_LZoS8Q_xEd2mbaTvSwUWQw" base_Class="_IRqccA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_LZoS8g_xEd2mbaTvSwUWQw" base_Class="_H7ms4A_xEd2mbaTvSwUWQw"/>
+ <Requirements:Copy xmi:id="_Mpf_YA_xEd2mbaTvSwUWQw" base_Abstraction="_JHml8A_xEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.di2
new file mode 100644
index 00000000000..457b6be40f5
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.di2
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="120:61" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_DeriveReqt_TEST.uml#_x5NzwA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="256:61" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_DeriveReqt_TEST.uml#_yOhVYA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="356:112" graphEdge="//@contained.5"/>
+ <anchorage position="356:137" graphEdge="//@contained.6"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="462:61" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_DeriveReqt_TEST.uml#_yoJWUA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="461:112" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="256:208" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_DeriveReqt_TEST.uml#_y7-RQA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="356:267" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="462:208" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_DeriveReqt_TEST.uml#_zWMvIA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="461:253" graphEdge="//@contained.6"/>
+ <anchorage position="461:267" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.0 //@contained.2/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Requirements::DeriveReqt"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:-18" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_DeriveReqt_TEST.uml#_3KuJoA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.1 //@contained.4/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Requirements::DeriveReqt"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:-4" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_DeriveReqt_TEST.uml#_48Q_wA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.3/@anchorage.0 //@contained.4/@anchorage.1">
+ <property key="PropStereoDisplay" value="SysML::Requirements::DeriveReqt"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="1:22" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_DeriveReqt_TEST.uml#_5hE9AA_wEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_DeriveReqt_TEST.uml#_u2TcYA_wEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.uml
new file mode 100644
index 00000000000..cfcf5eccdcd
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_DeriveReqt_TEST.uml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_u2TcYA_wEd2mbaTvSwUWQw" name="SysML_DeriveReqt_TEST">
+ <packageImport xmi:id="_u2TcYQ_wEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_x5NzwA_wEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_yOhVYA_wEd2mbaTvSwUWQw" name="Class_1" clientDependency="_3KuJoA_wEd2mbaTvSwUWQw _48Q_wA_wEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_yoJWUA_wEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_y7-RQA_wEd2mbaTvSwUWQw" name="Class_3" clientDependency="_5hE9AA_wEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zWMvIA_wEd2mbaTvSwUWQw" name="Class_4"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_3KuJoA_wEd2mbaTvSwUWQw" name="FromClass_1toClass_2" supplier="_yoJWUA_wEd2mbaTvSwUWQw" client="_yOhVYA_wEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_48Q_wA_wEd2mbaTvSwUWQw" name="FromClass_1toClass_4" supplier="_zWMvIA_wEd2mbaTvSwUWQw" client="_yOhVYA_wEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_5hE9AA_wEd2mbaTvSwUWQw" name="FromClass_3toClass_4" supplier="_zWMvIA_wEd2mbaTvSwUWQw" client="_y7-RQA_wEd2mbaTvSwUWQw"/>
+ <profileApplication xmi:id="_u2TcYg_wEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_u2TcYw_wEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_xaXUkA_wEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_xahFkA_wEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Requirements:DeriveReqt xmi:id="_8SswEA_wEd2mbaTvSwUWQw" base_Abstraction="_3KuJoA_wEd2mbaTvSwUWQw"/>
+ <Requirements:DeriveReqt xmi:id="_8SswEQ_wEd2mbaTvSwUWQw" base_Abstraction="_48Q_wA_wEd2mbaTvSwUWQw"/>
+ <Requirements:DeriveReqt xmi:id="_8SswEg_wEd2mbaTvSwUWQw" base_Abstraction="_5hE9AA_wEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_91CskA_wEd2mbaTvSwUWQw" base_Class="_yoJWUA_wEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_91CskQ_wEd2mbaTvSwUWQw" base_Class="_zWMvIA_wEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_91MdkA_wEd2mbaTvSwUWQw" base_Class="_y7-RQA_wEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_91MdkQ_wEd2mbaTvSwUWQw" base_Class="_yOhVYA_wEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_91Mdkg_wEd2mbaTvSwUWQw" base_Class="_x5NzwA_wEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.di2
new file mode 100644
index 00000000000..88d88e21f21
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.di2
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ASCII"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <di2:Diagram isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="428:82" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::PortAndFlows::FlowSpecification"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Interface" href="SysML_FlowPort_TEST.uml#_g-Er0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="618:84" size="120:100">
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:PrimitiveType" href="SysML_FlowPort_TEST.uml#_irJ4sA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_FlowPort_TEST.uml#_XAwHEA_xEd2mbaTvSwUWQw"/>
+ </owner>
+ </di2:Diagram>
+ <di2:Diagram isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="Composite diagram of SysML_FlowPort_TEST" type="CompositeStructureDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticChild="/1/@contained.1 /1/@contained.3 /1/@contained.5" position="199:49" size="600:291">
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_FlowPort_TEST.uml#_dtUFsA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.0" semanticChild="/1/@contained.2" position="789:99" size="20:20">
+ <property key="PropStereoDisplay" value="SysML::PortAndFlows::FlowPort"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Port" href="SysML_FlowPort_TEST.uml#_eK9rAA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.1" position="597:80" size="196:15">
+ <property key="custom_disp" value="56"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.0" semanticChild="/1/@contained.4" position="789:212" size="20:20">
+ <property key="PropStereoDisplay" value="SysML::PortAndFlows::FlowPort"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Port" href="SysML_FlowPort_TEST.uml#_jzbIUA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.3" position="605:191" size="186:15">
+ <property key="custom_disp" value="56"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.0" semanticChild="/1/@contained.6" position="189:160" size="20:20">
+ <property key="PropStereoDisplay" value="SysML::PortAndFlows::FlowPort"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Port" href="SysML_FlowPort_TEST.uml#_nu9JwA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" semanticParent="/1/@contained.5" position="210:137" size="196:15">
+ <property key="custom_disp" value="56"/>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_FlowPort_TEST.uml#_XAwHEA_xEd2mbaTvSwUWQw"/>
+ </owner>
+ </di2:Diagram>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.uml
new file mode 100644
index 00000000000..5042b590bbc
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_FlowPort_TEST.uml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:PortAndFlows="http://www.papyrusuml.org/SysML/PortAndFlows/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_XAwHEA_xEd2mbaTvSwUWQw" name="SysML_FlowPort_TEST">
+ <packageImport xmi:id="_XAwHEQ_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_dtUFsA_xEd2mbaTvSwUWQw" name="Class_0">
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_eK9rAA_xEd2mbaTvSwUWQw" name="Port_0" aggregation="composite"/>
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_jzbIUA_xEd2mbaTvSwUWQw" name="Port_1" type="_g-Er0A_xEd2mbaTvSwUWQw" aggregation="composite"/>
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_nu9JwA_xEd2mbaTvSwUWQw" name="Port_2" type="_irJ4sA_xEd2mbaTvSwUWQw" aggregation="composite"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_g-Er0A_xEd2mbaTvSwUWQw" name="Interface_0"/>
+ <packagedElement xmi:type="uml:PrimitiveType" xmi:id="_irJ4sA_xEd2mbaTvSwUWQw" name="PrimitiveType_0"/>
+ <profileApplication xmi:id="_XAwHEg_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_XAwHEw_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_bHAx0A_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_bHAx0Q_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//portandflows"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_rpx28LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <PortAndFlows:FlowPort xmi:id="_fJZpMA_xEd2mbaTvSwUWQw" base_Port="_eK9rAA_xEd2mbaTvSwUWQw"/>
+ <PortAndFlows:FlowSpecification xmi:id="_hqfF4A_xEd2mbaTvSwUWQw" base_Interface="_g-Er0A_xEd2mbaTvSwUWQw"/>
+ <PortAndFlows:FlowPort xmi:id="_mDOAsA_xEd2mbaTvSwUWQw" base_Port="_jzbIUA_xEd2mbaTvSwUWQw"/>
+ <PortAndFlows:FlowPort xmi:id="_oefJQA_xEd2mbaTvSwUWQw" base_Port="_nu9JwA_xEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.di2
new file mode 100644
index 00000000000..fa6ddef2603
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.di2
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_zIq0AA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_zhGiIA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:125" graphEdge="//@contained.5"/>
+ <anchorage position="555:132" graphEdge="//@contained.6"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_zx8agA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:125" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_0BSeEA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:271" graphEdge="//@contained.6"/>
+ <anchorage position="750:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.0 //@contained.2/@anchorage.0">
+ <property key="PropStereoDisplay" value="Standard::Refine"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-2:-18" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Refine_TEST.uml#_6vCvgA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.1 //@contained.3/@anchorage.0">
+ <property key="PropStereoDisplay" value="Standard::Refine"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:-1" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Refine_TEST.uml#_CwrqsA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.4/@anchorage.0 //@contained.3/@anchorage.1">
+ <property key="PropStereoDisplay" value="Standard::Refine"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:21" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Refine_TEST.uml#_DUvaAA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Refine_TEST.uml#_houV4A_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Refine_TEST.uml#_wJfGRw_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.uml
new file mode 100644
index 00000000000..aa455b3cea4
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Refine_TEST.uml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:standard="http://www.eclipse.org/uml2/schemas/Standard/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" xsi:schemaLocation="http://www.papyrusuml.org/SysML/Requirements/1 http://www.papyrusuml.org/SysML/1#//requirements">
+ <uml:Model xmi:id="_wJfGRw_xEd2mbaTvSwUWQw" name="SysML_Refine_TEST">
+ <packageImport xmi:id="_wJfGSA_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zIq0AA_xEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zhGiIA_xEd2mbaTvSwUWQw" name="Class_1" clientDependency="_6vCvgA_xEd2mbaTvSwUWQw _CwrqsA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zx8agA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0BSeEA_xEd2mbaTvSwUWQw" name="Class_3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0V2Y0A_xEd2mbaTvSwUWQw" name="Class_4" clientDependency="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_6vCvgA_xEd2mbaTvSwUWQw" name="FromClass_1toClass_2" supplier="_zx8agA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_CwrqsA_yEd2mbaTvSwUWQw" name="FromClass_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_DUvaAA_yEd2mbaTvSwUWQw" name="FromClass_4toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_houV4A_yEd2mbaTvSwUWQw" name="Class_5"/>
+ <profileApplication xmi:id="_wJfGSQ_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_wJfGSg_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_ZeccEA_yEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_ZeccEQ_yEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="../../../plugin/com.cea.papyrus.uml4sysml.extension/model/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Requirements:Requirement xmi:id="_bnrZcg_yEd2mbaTvSwUWQw" base_Class="_zIq0AA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_jx96UA_yEd2mbaTvSwUWQw" base_NamedElement="_houV4A_yEd2mbaTvSwUWQw"/>
+ <standard:Refine xmi:id="_w_CjIA_zEd2mbaTvSwUWQw" base_Abstraction="_6vCvgA_xEd2mbaTvSwUWQw"/>
+ <standard:Refine xmi:id="_w_MUIA_zEd2mbaTvSwUWQw" base_Abstraction="_CwrqsA_yEd2mbaTvSwUWQw"/>
+ <standard:Refine xmi:id="_w_MUIQ_zEd2mbaTvSwUWQw" base_Abstraction="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_0tnGoA_zEd2mbaTvSwUWQw" base_Class="_0BSeEA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_5TnBYA_zEd2mbaTvSwUWQw" base_Class="_zx8agA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_7LtygA_zEd2mbaTvSwUWQw" base_NamedElement="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_7LtygQ_zEd2mbaTvSwUWQw" base_NamedElement="_zhGiIA_xEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.di2
new file mode 100644
index 00000000000..b7ac779d710
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.di2
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_zIq0AA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_zhGiIA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:125"/>
+ <anchorage position="555:132"/>
+ <anchorage position="555:119" graphEdge="//@contained.6"/>
+ <anchorage position="555:134" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_zx8agA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:125"/>
+ <anchorage position="750:119" graphEdge="//@contained.6"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_0BSeEA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:271"/>
+ <anchorage position="750:300"/>
+ <anchorage position="750:270" graphEdge="//@contained.7"/>
+ <anchorage position="750:301" graphEdge="//@contained.8"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:300"/>
+ <anchorage position="555:301" graphEdge="//@contained.8"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Satisfy_TEST.uml#_houV4A_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.2 //@contained.2/@anchorage.1">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Satisfy"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:-14" size="49:15"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Realization" href="SysML_Satisfy_TEST.uml#_v7uPgA_0Ed2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.3 //@contained.3/@anchorage.2">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Satisfy"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:3" size="49:15"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Realization" href="SysML_Satisfy_TEST.uml#_waaWoA_0Ed2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.4/@anchorage.1 //@contained.3/@anchorage.3">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Satisfy"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:-15" size="49:15"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Realization" href="SysML_Satisfy_TEST.uml#_xFLx8A_0Ed2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Satisfy_TEST.uml#_wJfGRw_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.uml
new file mode 100644
index 00000000000..9e383f81406
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Satisfy_TEST.uml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:com.cea.papyrus.profiles="http://www.eclipse.org/uml2/schemas/Standard/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_wJfGRw_xEd2mbaTvSwUWQw" name="SysML_Satisfy_TEST">
+ <packageImport xmi:id="_wJfGSA_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zIq0AA_xEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zhGiIA_xEd2mbaTvSwUWQw" name="Class_1" clientDependency="_v7uPgA_0Ed2mbaTvSwUWQw _waaWoA_0Ed2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zx8agA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0BSeEA_xEd2mbaTvSwUWQw" name="Class_3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0V2Y0A_xEd2mbaTvSwUWQw" name="Class_4" clientDependency="_xFLx8A_0Ed2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_houV4A_yEd2mbaTvSwUWQw" name="Class_5"/>
+ <packagedElement xmi:type="uml:Realization" xmi:id="_v7uPgA_0Ed2mbaTvSwUWQw" name="FromClass_1toClass_2" supplier="_zx8agA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Realization" xmi:id="_waaWoA_0Ed2mbaTvSwUWQw" name="FromClass_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Realization" xmi:id="_xFLx8A_0Ed2mbaTvSwUWQw" name="FromClass_4toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <profileApplication xmi:id="_wJfGSQ_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_wJfGSg_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_ZeccEA_yEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_ZeccEQ_yEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Requirements:Requirement xmi:id="_bnrZcg_yEd2mbaTvSwUWQw" base_Class="_zIq0AA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_jx96UA_yEd2mbaTvSwUWQw" base_NamedElement="_houV4A_yEd2mbaTvSwUWQw"/>
+ <com.cea.papyrus.profiles:Refine xmi:id="_w_CjIA_zEd2mbaTvSwUWQw"/>
+ <com.cea.papyrus.profiles:Refine xmi:id="_w_MUIA_zEd2mbaTvSwUWQw"/>
+ <com.cea.papyrus.profiles:Refine xmi:id="_w_MUIQ_zEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_0tnGoA_zEd2mbaTvSwUWQw" base_Class="_0BSeEA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_5TnBYA_zEd2mbaTvSwUWQw" base_Class="_zx8agA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_7LtygA_zEd2mbaTvSwUWQw" base_NamedElement="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_7LtygQ_zEd2mbaTvSwUWQw" base_NamedElement="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_DG8jsA_0Ed2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_PYFlMA_0Ed2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_PYFlMQ_0Ed2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_ziY0MA_0Ed2mbaTvSwUWQw" base_Realization="_xFLx8A_0Ed2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_ziY0MQ_0Ed2mbaTvSwUWQw" base_Realization="_waaWoA_0Ed2mbaTvSwUWQw"/>
+ <Requirements:Satisfy xmi:id="_ziY0Mg_0Ed2mbaTvSwUWQw" base_Realization="_v7uPgA_0Ed2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.di2
new file mode 100644
index 00000000000..65d5ce4facf
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.di2
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_zIq0AA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_zhGiIA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:125" graphEdge="//@contained.5"/>
+ <anchorage position="555:132" graphEdge="//@contained.6"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_zx8agA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:125" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_0BSeEA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:271" graphEdge="//@contained.6"/>
+ <anchorage position="750:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="455:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="555:300" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.0 //@contained.2/@anchorage.0">
+ <property key="PropStereoDisplay" value="Standard::Trace"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-2:-18" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Trace_TEST.uml#_6vCvgA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.1 //@contained.3/@anchorage.0">
+ <property key="PropStereoDisplay" value="Standard::Trace"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:-1" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Trace_TEST.uml#_CwrqsA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.4/@anchorage.0 //@contained.3/@anchorage.1">
+ <property key="PropStereoDisplay" value="Standard::Trace"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-1:21" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Trace_TEST.uml#_DUvaAA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::RequirementRelated"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Trace_TEST.uml#_houV4A_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Trace_TEST.uml#_wJfGRw_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.uml
new file mode 100644
index 00000000000..170deeaa64a
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Trace_TEST.uml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:standard="http://www.eclipse.org/uml2/schemas/Standard/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_wJfGRw_xEd2mbaTvSwUWQw" name="SysML_Trace_TEST">
+ <packageImport xmi:id="_wJfGSA_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zIq0AA_xEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zhGiIA_xEd2mbaTvSwUWQw" name="Class_1" clientDependency="_6vCvgA_xEd2mbaTvSwUWQw _CwrqsA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zx8agA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0BSeEA_xEd2mbaTvSwUWQw" name="Class_3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0V2Y0A_xEd2mbaTvSwUWQw" name="Class_4" clientDependency="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_6vCvgA_xEd2mbaTvSwUWQw" name="FromClass_1toClass_2" supplier="_zx8agA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_CwrqsA_yEd2mbaTvSwUWQw" name="FromClass_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_DUvaAA_yEd2mbaTvSwUWQw" name="FromClass_4toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_houV4A_yEd2mbaTvSwUWQw" name="Class_5"/>
+ <profileApplication xmi:id="_wJfGSQ_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_wJfGSg_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_ZeccEA_yEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_ZeccEQ_yEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <standard:Trace xmi:id="_RgE3UA_yEd2mbaTvSwUWQw" base_Abstraction="_6vCvgA_xEd2mbaTvSwUWQw"/>
+ <standard:Trace xmi:id="_RgE3UQ_yEd2mbaTvSwUWQw" base_Abstraction="_CwrqsA_yEd2mbaTvSwUWQw"/>
+ <standard:Trace xmi:id="_RgE3Ug_yEd2mbaTvSwUWQw" base_Abstraction="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_bnYegA_yEd2mbaTvSwUWQw" base_Class="_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_bnrZcQ_yEd2mbaTvSwUWQw" base_Class="_zhGiIA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_bnrZcg_yEd2mbaTvSwUWQw" base_Class="_zIq0AA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_gHa7MA_yEd2mbaTvSwUWQw" base_NamedElement="_zx8agA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_hFQccA_yEd2mbaTvSwUWQw" base_NamedElement="_0BSeEA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_jx96UA_yEd2mbaTvSwUWQw" base_NamedElement="_houV4A_yEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.di2
new file mode 100644
index 00000000000..cc52f7dfcbb
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.di2
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="201:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Verify_TEST.uml#_zIq0AA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="350:75" size="205:102">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::TestCase"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Operation" href="SysML_Verify_TEST.uml#_312fYA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="534:125" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::TestCase"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Operation" href="SysML_Verify_TEST.uml#_4AbXsA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="513:154" graphEdge="//@contained.6"/>
+ </contained>
+ </contained>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Verify_TEST.uml#_zhGiIA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:75" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Verify_TEST.uml#_zx8agA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:125" graphEdge="//@contained.5"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="751:246" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Requirement"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Verify_TEST.uml#_0BSeEA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="750:271" graphEdge="//@contained.6"/>
+ <anchorage position="750:319" graphEdge="//@contained.7"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="350:245" size="206:102">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::TestCase"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Operation" href="SysML_Verify_TEST.uml#_7KL98A_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::Requirements::TestCase"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Operation" href="SysML_Verify_TEST.uml#_7Vq1MA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ <anchorage position="554:319" graphEdge="//@contained.7"/>
+ </contained>
+ </contained>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_Verify_TEST.uml#_0V2Y0A_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@contained.1/@contained.0/@anchorage.0 //@contained.2/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Verify"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="29:-23" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Verify_TEST.uml#_6vCvgA_xEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@contained.1/@contained.1/@anchorage.0 //@contained.3/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Verify"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="43:9" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Verify_TEST.uml#_CwrqsA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.4/@contained.1/@contained.1/@anchorage.0 //@contained.3/@anchorage.1">
+ <property key="PropStereoDisplay" value="SysML::Requirements::Verify"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="15:23" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_Verify_TEST.uml#_DUvaAA_yEd2mbaTvSwUWQw"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_Verify_TEST.uml#_wJfGRw_xEd2mbaTvSwUWQw"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.uml
new file mode 100644
index 00000000000..68eab8740e3
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_Verify_TEST.uml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:Requirements="http://www.papyrusuml.org/SysML/Requirements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_wJfGRw_xEd2mbaTvSwUWQw" name="SysML_Verify_TEST">
+ <packageImport xmi:id="_wJfGSA_xEd2mbaTvSwUWQw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zIq0AA_xEd2mbaTvSwUWQw" name="Class_0"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zhGiIA_xEd2mbaTvSwUWQw" name="Class_1">
+ <ownedOperation xmi:id="_312fYA_yEd2mbaTvSwUWQw" name="c1_Op1" clientDependency="_6vCvgA_xEd2mbaTvSwUWQw"/>
+ <ownedOperation xmi:id="_4AbXsA_yEd2mbaTvSwUWQw" name="c1_Op2" clientDependency="_CwrqsA_yEd2mbaTvSwUWQw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_zx8agA_xEd2mbaTvSwUWQw" name="Class_2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0BSeEA_xEd2mbaTvSwUWQw" name="Class_3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0V2Y0A_xEd2mbaTvSwUWQw" name="Class_4">
+ <ownedOperation xmi:id="_7KL98A_yEd2mbaTvSwUWQw" name="c4_Op1"/>
+ <ownedOperation xmi:id="_7Vq1MA_yEd2mbaTvSwUWQw" name="c4_Op2" clientDependency="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_6vCvgA_xEd2mbaTvSwUWQw" name="FromOperation_0toClass_2" supplier="_zx8agA_xEd2mbaTvSwUWQw" client="_312fYA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_CwrqsA_yEd2mbaTvSwUWQw" name="FromOperation_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_4AbXsA_yEd2mbaTvSwUWQw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_DUvaAA_yEd2mbaTvSwUWQw" name="FromOperation_1toClass_3" supplier="_0BSeEA_xEd2mbaTvSwUWQw" client="_7Vq1MA_yEd2mbaTvSwUWQw"/>
+ <profileApplication xmi:id="_wJfGSQ_xEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_wJfGSg_xEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_ZeccEA_yEd2mbaTvSwUWQw">
+ <eAnnotations xmi:id="_ZeccEQ_yEd2mbaTvSwUWQw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//requirements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <Requirements:Requirement xmi:id="_bnrZcg_yEd2mbaTvSwUWQw" base_Class="_zIq0AA_xEd2mbaTvSwUWQw"/>
+ <Requirements:RequirementRelated xmi:id="_jx96UA_yEd2mbaTvSwUWQw"/>
+ <Requirements:Verify xmi:id="_vSYpgA_yEd2mbaTvSwUWQw" base_Abstraction="_DUvaAA_yEd2mbaTvSwUWQw"/>
+ <Requirements:Verify xmi:id="_w90QkA_yEd2mbaTvSwUWQw" base_Abstraction="_CwrqsA_yEd2mbaTvSwUWQw"/>
+ <Requirements:Verify xmi:id="_yoEL4A_yEd2mbaTvSwUWQw" base_Abstraction="_6vCvgA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_2jmNUA_yEd2mbaTvSwUWQw" base_Class="_0BSeEA_xEd2mbaTvSwUWQw"/>
+ <Requirements:Requirement xmi:id="_3LhwAA_yEd2mbaTvSwUWQw" base_Class="_zx8agA_xEd2mbaTvSwUWQw"/>
+ <Requirements:TestCase xmi:id="_D9KPcA_zEd2mbaTvSwUWQw" base_Operation="_312fYA_yEd2mbaTvSwUWQw"/>
+ <Requirements:TestCase xmi:id="_FGeA4A_zEd2mbaTvSwUWQw" base_Operation="_4AbXsA_yEd2mbaTvSwUWQw"/>
+ <Requirements:TestCase xmi:id="_GEdTIA_zEd2mbaTvSwUWQw" base_Operation="_7KL98A_yEd2mbaTvSwUWQw"/>
+ <Requirements:TestCase xmi:id="_GEdTIQ_zEd2mbaTvSwUWQw" base_Operation="_7Vq1MA_yEd2mbaTvSwUWQw"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.di2 b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.di2
new file mode 100644
index 00000000000..56046b79807
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.di2
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="ASCII"?>
+<di2:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di2="http://www.papyrusuml.org" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="255:255:255" foregroundColor="255:255:255" backgroundColor="255:255:255" borderColor="255:255:255" position="0:0" name="DefaultDiagram">
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="649:120" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::ModelElements::ViewPoint"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_View_TEST.uml#_v9DegA_vEd2uupC7rat70Q"/>
+ </semanticModel>
+ <anchorage position="648:179" graphEdge="//@contained.4"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="347:120" size="200:100">
+ <property key="PropStereoDisplay" value="SysML::ModelElements::View"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Package" href="SysML_View_TEST.uml#_xOtToA_vEd2uupC7rat70Q"/>
+ </semanticModel>
+ <anchorage position="547:179" graphEdge="//@contained.4"/>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="649:270" size="100:100">
+ <property key="PropStereoDisplay" value="SysML::ModelElements::ViewPoint"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="20:20" size="100:100"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Class" href="SysML_View_TEST.uml#_xknSMA_vEd2uupC7rat70Q"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="347:270" size="200:100">
+ <property key="PropStereoDisplay" value="SysML::ModelElements::View"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Package" href="SysML_View_TEST.uml#_yAVk4A_vEd2uupC7rat70Q"/>
+ </semanticModel>
+ </contained>
+ <contained xsi:type="di2:GraphEdge" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="0:0:0" backgroundColor="0:0:0" borderColor="0:0:0" anchor="//@contained.1/@anchorage.0 //@contained.0/@anchorage.0">
+ <property key="PropStereoDisplay" value="SysML::ModelElements::Conform"/>
+ <contained xsi:type="di2:GraphNode" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="0:10" size="100:100"/>
+ <contained xsi:type="di2:GraphNode" isVisible="true" fontFamily="Arial" fontSize="9" lineStyle="solid" fontColor="0:0:0" foregroundColor="248:249:214" backgroundColor="248:249:214" borderColor="157:124:47" position="-3:-19" size="75:30"/>
+ <semanticModel xsi:type="di2:Uml1SemanticModelBridge" presentation="TextStereotype">
+ <element xsi:type="uml:Abstraction" href="SysML_View_TEST.uml#_1ofXUA_vEd2uupC7rat70Q"/>
+ </semanticModel>
+ </contained>
+ <owner xsi:type="di2:Uml1SemanticModelBridge">
+ <element xsi:type="uml:Model" href="SysML_View_TEST.uml#_vKPhgA_vEd2uupC7rat70Q"/>
+ </owner>
+</di2:Diagram>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.uml b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.uml
new file mode 100644
index 00000000000..a9ad5917c81
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/samples/SysML_View_TEST.uml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:ModelElements="http://www.papyrusuml.org/SysML/ModelElements/1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
+ <uml:Model xmi:id="_vKPhgA_vEd2uupC7rat70Q" name="SysML_View_TEST">
+ <packageImport xmi:id="_vKPhgQ_vEd2uupC7rat70Q">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_v9DegA_vEd2uupC7rat70Q" name="Class_0"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_xOtToA_vEd2uupC7rat70Q" name="Package_0" clientDependency="_1ofXUA_vEd2uupC7rat70Q"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_xknSMA_vEd2uupC7rat70Q" name="Class_1"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_yAVk4A_vEd2uupC7rat70Q" name="Package_1"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_1ofXUA_vEd2uupC7rat70Q" name="FromPackage_0toClass_0" supplier="_v9DegA_vEd2uupC7rat70Q" client="_xOtToA_vEd2uupC7rat70Q"/>
+ <profileApplication xmi:id="_vKPhgg_vEd2uupC7rat70Q">
+ <eAnnotations xmi:id="_vKPhgw_vEd2uupC7rat70Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/schemas/Standard/1#/"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:id="_3pF9Xw_vEd2uupC7rat70Q">
+ <eAnnotations xmi:id="_3pPHEA_vEd2uupC7rat70Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.papyrusuml.org/SysML/1#//modelelements"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://SysML_PROFILES/SysML.profile.uml#_Gx8MgLX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ </uml:Model>
+ <ModelElements:Conform xmi:id="_5P6J8A_vEd2uupC7rat70Q" base_Dependency="_1ofXUA_vEd2uupC7rat70Q"/>
+ <ModelElements:ViewPoint xmi:id="_6YLZkA_vEd2uupC7rat70Q" base_Class="_v9DegA_vEd2uupC7rat70Q"/>
+ <ModelElements:ViewPoint xmi:id="_7AQtQA_vEd2uupC7rat70Q" base_Class="_xknSMA_vEd2uupC7rat70Q"/>
+ <ModelElements:View xmi:id="_7oWA8A_vEd2uupC7rat70Q" base_Package="_yAVk4A_vEd2uupC7rat70Q"/>
+ <ModelElements:View xmi:id="_8UTvEA_vEd2uupC7rat70Q" base_Package="_xOtToA_vEd2uupC7rat70Q"/>
+</xmi:XMI>
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ActivitiesTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ActivitiesTests.java
new file mode 100644
index 00000000000..ef316f1ce41
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ActivitiesTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>activities</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ActivitiesTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new ActivitiesTests("activities Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ActivitiesTests(String name) {
+ super(name);
+ }
+
+} // ActivitiesTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ContinuousTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ContinuousTest.java
new file mode 100644
index 00000000000..f59a9645cae
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ContinuousTest.java
@@ -0,0 +1,81 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Continuous;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Continuous</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ContinuousTest extends RateTest {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ContinuousTest.class);
+ }
+
+ /**
+ * Constructs a new Continuous test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ContinuousTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Continuous test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ protected Continuous getFixture() {
+ return (Continuous) fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createContinuous());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ContinuousTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ControlOperatorTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ControlOperatorTest.java
new file mode 100644
index 00000000000..427105d237f
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ControlOperatorTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.ControlOperator;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Control Operator</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ControlOperatorTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ControlOperatorTest.class);
+ }
+
+ /**
+ * The fixture for this Control Operator test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ControlOperator fixture = null;
+
+ /**
+ * Constructs a new Control Operator test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ControlOperatorTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Control Operator test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ControlOperator getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Control Operator test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ControlOperator fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createControlOperator());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ControlOperatorTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/DiscreteTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/DiscreteTest.java
new file mode 100644
index 00000000000..08f2dc944c3
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/DiscreteTest.java
@@ -0,0 +1,81 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Discrete;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Discrete</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class DiscreteTest extends RateTest {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(DiscreteTest.class);
+ }
+
+ /**
+ * Constructs a new Discrete test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public DiscreteTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Discrete test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ protected Discrete getFixture() {
+ return (Discrete) fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createDiscrete());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // DiscreteTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/NoBufferTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/NoBufferTest.java
new file mode 100644
index 00000000000..f379e371838
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/NoBufferTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.NoBuffer;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>No Buffer</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class NoBufferTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(NoBufferTest.class);
+ }
+
+ /**
+ * The fixture for this No Buffer test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected NoBuffer fixture = null;
+
+ /**
+ * Constructs a new No Buffer test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public NoBufferTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this No Buffer test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected NoBuffer getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this No Buffer test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(NoBuffer fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createNoBuffer());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // NoBufferTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OptionnalTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OptionnalTest.java
new file mode 100644
index 00000000000..aa4e106a325
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OptionnalTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Optionnal;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Optionnal</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class OptionnalTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(OptionnalTest.class);
+ }
+
+ /**
+ * The fixture for this Optionnal test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Optionnal fixture = null;
+
+ /**
+ * Constructs a new Optionnal test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public OptionnalTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Optionnal test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Optionnal getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Optionnal test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Optionnal fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createOptionnal());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // OptionnalTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OverwriteTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OverwriteTest.java
new file mode 100644
index 00000000000..55a5f09c564
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/OverwriteTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Overwrite;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Overwrite</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class OverwriteTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(OverwriteTest.class);
+ }
+
+ /**
+ * The fixture for this Overwrite test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Overwrite fixture = null;
+
+ /**
+ * Constructs a new Overwrite test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public OverwriteTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Overwrite test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Overwrite getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Overwrite test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Overwrite fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createOverwrite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // OverwriteTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ProbabilityTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ProbabilityTest.java
new file mode 100644
index 00000000000..14b2370f071
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/ProbabilityTest.java
@@ -0,0 +1,98 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Probability;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Probability</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ProbabilityTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ProbabilityTest.class);
+ }
+
+ /**
+ * The fixture for this Probability test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Probability fixture = null;
+
+ /**
+ * Constructs a new Probability test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ProbabilityTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Probability test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Probability getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Probability test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void setFixture(Probability fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createProbability());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ProbabilityTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/RateTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/RateTest.java
new file mode 100644
index 00000000000..a2f334e8936
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/activities/tests/RateTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.activities.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.activities.ActivitiesFactory;
+import org.eclipse.papyrus.sysml.activities.Rate;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Rate</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class RateTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(RateTest.class);
+ }
+
+ /**
+ * The fixture for this Rate test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Rate fixture = null;
+
+ /**
+ * Constructs a new Rate test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public RateTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Rate test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Rate getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Rate test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Rate fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ActivitiesFactory.eINSTANCE.createRate());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // RateTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateActivityPartitionTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateActivityPartitionTest.java
new file mode 100644
index 00000000000..618f8066bb5
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateActivityPartitionTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.allocations.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.allocations.AllocateActivityPartition;
+import org.eclipse.papyrus.sysml.allocations.AllocationsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '
+ * <em><b>Allocate Activity Partition</b></em>'. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class AllocateActivityPartitionTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(AllocateActivityPartitionTest.class);
+ }
+
+ /**
+ * The fixture for this Allocate Activity Partition test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected AllocateActivityPartition fixture = null;
+
+ /**
+ * Constructs a new Allocate Activity Partition test case with the given name. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AllocateActivityPartitionTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Allocate Activity Partition test case. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected AllocateActivityPartition getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Allocate Activity Partition test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(AllocateActivityPartition fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(AllocationsFactory.eINSTANCE.createAllocateActivityPartition());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // AllocateActivityPartitionTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateTest.java
new file mode 100644
index 00000000000..435f1b2bd8f
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocateTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.allocations.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.allocations.Allocate;
+import org.eclipse.papyrus.sysml.allocations.AllocationsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Allocate</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class AllocateTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(AllocateTest.class);
+ }
+
+ /**
+ * The fixture for this Allocate test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Allocate fixture = null;
+
+ /**
+ * Constructs a new Allocate test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public AllocateTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Allocate test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Allocate getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Allocate test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Allocate fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(AllocationsFactory.eINSTANCE.createAllocate());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // AllocateTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocatedTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocatedTest.java
new file mode 100644
index 00000000000..131bf7b2f69
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocatedTest.java
@@ -0,0 +1,237 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.allocations.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.allocations.Allocate;
+import org.eclipse.papyrus.sysml.allocations.Allocated;
+import org.eclipse.papyrus.sysml.allocations.AllocationsFactory;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Allocated</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedFrom() <em>Allocated From
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedTo() <em>Allocated To
+ * </em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AllocatedTest extends TestCase {
+
+ /**
+ * The fixture for this Allocated test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static String ALLOCATE_ID = "SysML::Allocations::Allocate";
+
+ public static String ALLOCATED_ID = "SysML::Allocations::Allocated";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(AllocatedTest.class);
+ }
+
+ protected Allocated fixture = null;
+
+ protected Class c0 = null;
+
+ protected Class c1 = null;
+
+ protected Class c2 = null;
+
+ protected Class c3 = null;
+
+ protected Class c4 = null;
+
+ protected Allocated ac0 = null;
+
+ protected Allocated ac1 = null;
+
+ protected Allocated ac2 = null;
+
+ protected Allocated ac3 = null;
+
+ protected Allocated ac4 = null;
+
+ protected Model model = null;
+
+ /**
+ * Constructs a new Allocated test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public AllocatedTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Allocated test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Allocated getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Allocated test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Allocated fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(AllocationsFactory.eINSTANCE.createAllocated());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create classes
+ c0 = model.createOwnedClass("C0", false);
+ c1 = model.createOwnedClass("C1", false);
+ c2 = model.createOwnedClass("C2", false);
+ c3 = model.createOwnedClass("C3", false);
+ c4 = model.createOwnedClass("C4", false);
+
+ // Add Allocated stereotype
+ ac0 = (Allocated) c0.applyStereotype(c0.getApplicableStereotype(ALLOCATED_ID));
+ ac1 = (Allocated) c1.applyStereotype(c1.getApplicableStereotype(ALLOCATED_ID));
+ ac2 = (Allocated) c2.applyStereotype(c2.getApplicableStereotype(ALLOCATED_ID));
+ ac3 = (Allocated) c3.applyStereotype(c3.getApplicableStereotype(ALLOCATED_ID));
+ ac4 = (Allocated) c4.applyStereotype(c4.getApplicableStereotype(ALLOCATED_ID));
+
+ // Add Abstractions with allocate stereotype
+ // c1 -> c2, c3
+ // c4 -> c3
+ Abstraction c1_c2 = UMLFactory.eINSTANCE.createAbstraction();
+ c1_c2.getClients().add(c1);
+ c1_c2.getSuppliers().add(c2);
+ model.getPackagedElements().add(c1_c2);
+ @SuppressWarnings("unused")
+ Allocate a_c1_c2 = (Allocate) c1_c2.applyStereotype(c1_c2.getApplicableStereotype(ALLOCATE_ID));
+
+ Abstraction c1_c3 = UMLFactory.eINSTANCE.createAbstraction();
+ model.getPackagedElements().add(c1_c3);
+ c1_c3.getClients().add(c1);
+ c1_c3.getSuppliers().add(c3);
+ @SuppressWarnings("unused")
+ Allocate a_c1_c3 = (Allocate) c1_c3.applyStereotype(c1_c3.getApplicableStereotype(ALLOCATE_ID));
+
+ Abstraction c4_c3 = UMLFactory.eINSTANCE.createAbstraction();
+ model.getPackagedElements().add(c4_c3);
+ c4_c3.getClients().add(c4);
+ c4_c3.getSuppliers().add(c3);
+ @SuppressWarnings("unused")
+ Allocate a_c4_c3 = (Allocate) c4_c3.applyStereotype(c4_c3.getApplicableStereotype(ALLOCATE_ID));
+
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedFrom()
+ * <em>Allocated From</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedFrom()
+ * @generated NOT
+ */
+ public void testGetAllocatedFrom() {
+
+ // Verifies : ac0.getAllocatedFrom = []
+ if (!ac0.getAllocatedFrom().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : ac2.getAllocatedFrom = [c1]
+ if (!ac2.getAllocatedFrom().contains(c1)) {
+ fail();
+ }
+
+ // Verifies : ac3.getAllocatedFrom = [c1, c4]
+ if (!(ac3.getAllocatedFrom().contains(c1) && ac3.getAllocatedFrom().contains(c4))) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedTo()
+ * <em>Allocated To</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.allocations.Allocated#getAllocatedTo()
+ * @generated NOT
+ */
+ public void testGetAllocatedTo() {
+
+ // Verifies : ac0.getAllocatedTo = []
+ if (!ac0.getAllocatedTo().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : ac0.getAllocatedTo = [c2, c3]
+ if (!(ac1.getAllocatedTo().contains(c2) && ac1.getAllocatedTo().contains(c3))) {
+ fail();
+ }
+
+ // Verifies : ac4.getAllocatedTo = [c3]
+ if (!ac4.getAllocatedTo().contains(c3)) {
+ fail();
+ }
+ }
+
+} // AllocatedTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocationsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocationsTests.java
new file mode 100644
index 00000000000..938682e8d6d
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/allocations/tests/AllocationsTests.java
@@ -0,0 +1,57 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.allocations.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>allocations</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class AllocationsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new AllocationsTests("allocations Tests");
+ suite.addTestSuite(AllocatedTest.class);
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public AllocationsTests(String name) {
+ super(name);
+ }
+
+} // AllocationsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BindingConnectorTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BindingConnectorTest.java
new file mode 100644
index 00000000000..ddb88222354
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BindingConnectorTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BindingConnector;
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Binding Connector</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class BindingConnectorTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(BindingConnectorTest.class);
+ }
+
+ /**
+ * The fixture for this Binding Connector test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected BindingConnector fixture = null;
+
+ /**
+ * Constructs a new Binding Connector test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BindingConnectorTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Binding Connector test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected BindingConnector getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Binding Connector test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(BindingConnector fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createBindingConnector());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // BindingConnectorTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlockTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlockTest.java
new file mode 100644
index 00000000000..f73e5d60495
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlockTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.Block;
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Block</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class BlockTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(BlockTest.class);
+ }
+
+ /**
+ * The fixture for this Block test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Block fixture = null;
+
+ /**
+ * Constructs a new Block test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public BlockTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Block test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Block getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Block test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Block fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createBlock());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // BlockTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlocksTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlocksTests.java
new file mode 100644
index 00000000000..5302e261b72
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/BlocksTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>blocks</b></em>' package. <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+public class BlocksTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new BlocksTests("blocks Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BlocksTests(String name) {
+ super(name);
+ }
+
+} // BlocksTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ConnectorPropertyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ConnectorPropertyTest.java
new file mode 100644
index 00000000000..fba96b42302
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ConnectorPropertyTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.ConnectorProperty;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Connector Property</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class ConnectorPropertyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ConnectorPropertyTest.class);
+ }
+
+ /**
+ * The fixture for this Connector Property test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ConnectorProperty fixture = null;
+
+ /**
+ * Constructs a new Connector Property test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ConnectorPropertyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Connector Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ConnectorProperty getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Connector Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ConnectorProperty fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createConnectorProperty());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ConnectorPropertyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DimensionTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DimensionTest.java
new file mode 100644
index 00000000000..77cb131b9d4
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DimensionTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.Dimension;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Dimension</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class DimensionTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(DimensionTest.class);
+ }
+
+ /**
+ * The fixture for this Dimension test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Dimension fixture = null;
+
+ /**
+ * Constructs a new Dimension test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public DimensionTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Dimension test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Dimension getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Dimension test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Dimension fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createDimension());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // DimensionTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DistributedPropertyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DistributedPropertyTest.java
new file mode 100644
index 00000000000..83886883b34
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/DistributedPropertyTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.DistributedProperty;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Distributed Property</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class DistributedPropertyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(DistributedPropertyTest.class);
+ }
+
+ /**
+ * The fixture for this Distributed Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected DistributedProperty fixture = null;
+
+ /**
+ * Constructs a new Distributed Property test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public DistributedPropertyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Distributed Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected DistributedProperty getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Distributed Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(DistributedProperty fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createDistributedProperty());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // DistributedPropertyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/NestedConnectorEndTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/NestedConnectorEndTest.java
new file mode 100644
index 00000000000..815ecd1218d
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/NestedConnectorEndTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.NestedConnectorEnd;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Nested Connector End</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class NestedConnectorEndTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(NestedConnectorEndTest.class);
+ }
+
+ /**
+ * The fixture for this Nested Connector End test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected NestedConnectorEnd fixture = null;
+
+ /**
+ * Constructs a new Nested Connector End test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NestedConnectorEndTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Nested Connector End test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected NestedConnectorEnd getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Nested Connector End test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(NestedConnectorEnd fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createNestedConnectorEnd());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // NestedConnectorEndTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ParticipantPropertyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ParticipantPropertyTest.java
new file mode 100644
index 00000000000..cdcacb5fd86
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ParticipantPropertyTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.ParticipantProperty;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Participant Property</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class ParticipantPropertyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ParticipantPropertyTest.class);
+ }
+
+ /**
+ * The fixture for this Participant Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ParticipantProperty fixture = null;
+
+ /**
+ * Constructs a new Participant Property test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ParticipantPropertyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Participant Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ParticipantProperty getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Participant Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ParticipantProperty fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createParticipantProperty());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ParticipantPropertyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/PropertySpecificTypeTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/PropertySpecificTypeTest.java
new file mode 100644
index 00000000000..4fa145bdff9
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/PropertySpecificTypeTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.PropertySpecificType;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Property Specific Type</b></em>
+ * '. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class PropertySpecificTypeTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(PropertySpecificTypeTest.class);
+ }
+
+ /**
+ * The fixture for this Property Specific Type test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected PropertySpecificType fixture = null;
+
+ /**
+ * Constructs a new Property Specific Type test case with the given name. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PropertySpecificTypeTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Property Specific Type test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected PropertySpecificType getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Property Specific Type test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(PropertySpecificType fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createPropertySpecificType());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // PropertySpecificTypeTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/UnitTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/UnitTest.java
new file mode 100644
index 00000000000..4b9cc0d4656
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/UnitTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.Unit;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Unit</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class UnitTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(UnitTest.class);
+ }
+
+ /**
+ * The fixture for this Unit test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Unit fixture = null;
+
+ /**
+ * Constructs a new Unit test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public UnitTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Unit test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Unit getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Unit test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Unit fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createUnit());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // UnitTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ValueTypeTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ValueTypeTest.java
new file mode 100644
index 00000000000..783af5f3159
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/blocks/tests/ValueTypeTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.blocks.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.BlocksFactory;
+import org.eclipse.papyrus.sysml.blocks.ValueType;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Value Type</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ValueTypeTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ValueTypeTest.class);
+ }
+
+ /**
+ * The fixture for this Value Type test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ValueType fixture = null;
+
+ /**
+ * Constructs a new Value Type test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ValueTypeTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Value Type test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ValueType getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Value Type test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ValueType fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(BlocksFactory.eINSTANCE.createValueType());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ValueTypeTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintBlockTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintBlockTest.java
new file mode 100644
index 00000000000..fcff2241d9d
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintBlockTest.java
@@ -0,0 +1,82 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.constraints.tests;
+
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.blocks.tests.BlockTest;
+import org.eclipse.papyrus.sysml.constraints.ConstraintBlock;
+import org.eclipse.papyrus.sysml.constraints.ConstraintsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Constraint Block</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ConstraintBlockTest extends BlockTest {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ConstraintBlockTest.class);
+ }
+
+ /**
+ * Constructs a new Constraint Block test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ConstraintBlockTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Constraint Block test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected ConstraintBlock getFixture() {
+ return (ConstraintBlock) fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ConstraintsFactory.eINSTANCE.createConstraintBlock());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ConstraintBlockTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintPropertyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintPropertyTest.java
new file mode 100644
index 00000000000..2888d348d69
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintPropertyTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.constraints.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.constraints.ConstraintProperty;
+import org.eclipse.papyrus.sysml.constraints.ConstraintsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Constraint Property</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class ConstraintPropertyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ConstraintPropertyTest.class);
+ }
+
+ /**
+ * The fixture for this Constraint Property test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ConstraintProperty fixture = null;
+
+ /**
+ * Constructs a new Constraint Property test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ConstraintPropertyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Constraint Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected ConstraintProperty getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Constraint Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ConstraintProperty fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ConstraintsFactory.eINSTANCE.createConstraintProperty());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ConstraintPropertyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintsTests.java
new file mode 100644
index 00000000000..a3a149d8331
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/constraints/tests/ConstraintsTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.constraints.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>constraints</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ConstraintsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new ConstraintsTests("constraints Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ConstraintsTests(String name) {
+ super(name);
+ }
+
+} // ConstraintsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/interactions/tests/InteractionsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/interactions/tests/InteractionsTests.java
new file mode 100644
index 00000000000..8224c4ba1bc
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/interactions/tests/InteractionsTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.interactions.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>interactions</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class InteractionsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new InteractionsTests("interactions Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public InteractionsTests(String name) {
+ super(name);
+ }
+
+} // InteractionsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ConformTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ConformTest.java
new file mode 100644
index 00000000000..038059e6add
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ConformTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.modelelements.Conform;
+import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Conform</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ConformTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ConformTest.class);
+ }
+
+ /**
+ * The fixture for this Conform test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Conform fixture = null;
+
+ /**
+ * Constructs a new Conform test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ConformTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Conform test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Conform getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Conform test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Conform fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ModelelementsFactory.eINSTANCE.createConform());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ConformTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ModelelementsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ModelelementsTests.java
new file mode 100644
index 00000000000..2c71f64cd60
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ModelelementsTests.java
@@ -0,0 +1,57 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>modelelements</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ModelelementsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new ModelelementsTests("modelelements Tests");
+ suite.addTestSuite(ViewTest.class);
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ModelelementsTests(String name) {
+ super(name);
+ }
+
+} // ModelelementsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ProblemTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ProblemTest.java
new file mode 100644
index 00000000000..b82ca3d112e
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ProblemTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
+import org.eclipse.papyrus.sysml.modelelements.Problem;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Problem</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ProblemTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ProblemTest.class);
+ }
+
+ /**
+ * The fixture for this Problem test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Problem fixture = null;
+
+ /**
+ * Constructs a new Problem test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ProblemTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Problem test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Problem getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Problem test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Problem fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ModelelementsFactory.eINSTANCE.createProblem());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ProblemTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/RationaleTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/RationaleTest.java
new file mode 100644
index 00000000000..8bc9337502f
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/RationaleTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
+import org.eclipse.papyrus.sysml.modelelements.Rationale;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Rationale</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class RationaleTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(RationaleTest.class);
+ }
+
+ /**
+ * The fixture for this Rationale test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Rationale fixture = null;
+
+ /**
+ * Constructs a new Rationale test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public RationaleTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Rationale test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Rationale getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Rationale test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Rationale fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ModelelementsFactory.eINSTANCE.createRationale());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // RationaleTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/SysmlAllTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/SysmlAllTests.java
new file mode 100644
index 00000000000..69ca34bc51c
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/SysmlAllTests.java
@@ -0,0 +1,63 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.allocations.tests.AllocationsTests;
+import org.eclipse.papyrus.sysml.portandflows.tests.PortandflowsTests;
+import org.eclipse.papyrus.sysml.requirements.tests.RequirementsTests;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>Sysml</b></em>' model. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class SysmlAllTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new SysmlAllTests("Sysml Tests");
+ suite.addTest(ModelelementsTests.suite());
+ suite.addTest(PortandflowsTests.suite());
+ suite.addTest(AllocationsTests.suite());
+ suite.addTest(RequirementsTests.suite());
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SysmlAllTests(String name) {
+ super(name);
+ }
+
+} // SysmlAllTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewPointTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewPointTest.java
new file mode 100644
index 00000000000..d333ca9a067
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewPointTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
+import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>View Point</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ViewPointTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ViewPointTest.class);
+ }
+
+ /**
+ * The fixture for this View Point test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ViewPoint fixture = null;
+
+ /**
+ * Constructs a new View Point test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ViewPointTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this View Point test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ViewPoint getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this View Point test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ViewPoint fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ModelelementsFactory.eINSTANCE.createViewPoint());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ViewPointTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewTest.java
new file mode 100644
index 00000000000..8ee2b6eb5ed
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/modelelements/tests/ViewTest.java
@@ -0,0 +1,184 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelelements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.modelelements.Conform;
+import org.eclipse.papyrus.sysml.modelelements.ModelelementsFactory;
+import org.eclipse.papyrus.sysml.modelelements.View;
+import org.eclipse.papyrus.sysml.modelelements.ViewPoint;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>View</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.modelelements.View#getViewPoint() <em>View Point</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ViewTest extends TestCase {
+
+ /**
+ * The fixture for this View test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static String CONFORM_ID = "SysML::ModelElements::Conform";
+
+ public static String VIEW_ID = "SysML::ModelElements::View";
+
+ public static String VIEWPOINT_ID = "SysML::ModelElements::ViewPoint";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ViewTest.class);
+ }
+
+ protected View fixture = null;
+
+ protected Package p0 = null;
+
+ protected Package p1 = null;
+
+ protected Class c1 = null;
+
+ protected ViewPoint vp1 = null;
+
+ protected View v0 = null;
+
+ protected View v1 = null;
+
+ protected Model model = null;
+
+ /**
+ * Constructs a new View test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ViewTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this View test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected View getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this View test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(View fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(ModelelementsFactory.eINSTANCE.createView());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create packages
+ p0 = model.createNestedPackage("p0");
+ p1 = model.createNestedPackage("p1");
+
+ // Create classes
+ c1 = model.createOwnedClass("c1", false);
+
+ // Add View stereotype
+ v0 = (View) p0.applyStereotype(p0.getApplicableStereotype(VIEW_ID));
+ v1 = (View) p1.applyStereotype(p1.getApplicableStereotype(VIEW_ID));
+
+ // Add ViewPoint stereotype
+ vp1 = (ViewPoint) c1.applyStereotype(c1.getApplicableStereotype(VIEWPOINT_ID));
+
+ // Add Abstractions with allocate stereotype
+ // v1 (p1) -> vp1 (c1)
+ Abstraction v1_vp1 = UMLFactory.eINSTANCE.createAbstraction();
+ v1_vp1.getClients().add(p1);
+ v1_vp1.getSuppliers().add(c1);
+ model.getPackagedElements().add(v1_vp1);
+ @SuppressWarnings("unused")
+ Conform c_v1_vp1 = (Conform) v1_vp1.applyStereotype(v1_vp1.getApplicableStereotype(CONFORM_ID));
+
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.modelelements.View#getViewPoint()
+ * <em>View Point</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.modelelements.View#getViewPoint()
+ * @generated NOT
+ */
+ public void testGetViewPoint() {
+
+ // Verifies : v0.getViewPoint = []
+ if (v0.getViewPoint() != null) {
+ fail();
+ }
+
+ // Verifies : v1.getViewPoint = vp1
+ if (!v1.getViewPoint().equals(vp1)) {
+ fail();
+ }
+ }
+
+} // ViewTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPortTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPortTest.java
new file mode 100644
index 00000000000..5f661c0b01e
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPortTest.java
@@ -0,0 +1,238 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.portandflows.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.portandflows.FlowDirection;
+import org.eclipse.papyrus.sysml.portandflows.FlowPort;
+import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
+import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Image;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.Stereotype;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Flow Port</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.portandflows.FlowPort#isIsAtomic() <em>Is Atomic</em>}</li>
+ * </ul>
+ * </p>
+ * <p>
+ * The following operations are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.portandflows.FlowPort#getIcon() <em>Get Icon</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FlowPortTest extends TestCase {
+
+ /**
+ * The fixture for this Flow Port test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static String FLOWPORT_ID = "SysML::PortAndFlows::FlowPort";
+
+ public static String FLOWSPECIFICATION_ID = "SysML::PortAndFlows::FlowSpecification";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(FlowPortTest.class);
+ }
+
+ protected FlowPort fixture = null;
+
+ protected Class c0 = null;
+
+ protected Interface i2 = null;
+
+ protected Port p0 = null;
+
+ protected Port p1 = null;
+
+ protected Port p2 = null;
+
+ protected FlowPort fp0 = null;
+
+ protected FlowPort fp1 = null;
+
+ protected FlowPort fp2 = null;
+
+ protected FlowSpecification fsp2 = null;
+
+ protected Model model = null;
+
+ /**
+ * Constructs a new Flow Port test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public FlowPortTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Flow Port test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected FlowPort getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Flow Port test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(FlowPort fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(PortandflowsFactory.eINSTANCE.createFlowPort());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create classes & interface
+ c0 = model.createOwnedClass("c0", false);
+ i2 = model.createOwnedInterface("i2");
+
+ // Create type
+ PrimitiveType ptype = model.createOwnedPrimitiveType("type");
+
+ // Create ports
+ p0 = c0.createOwnedPort("p0", null);
+ p1 = c0.createOwnedPort("p1", ptype);
+ p2 = c0.createOwnedPort("p2", i2);
+
+ // Add FlowPort stereotypes
+ fp0 = (FlowPort) p0.applyStereotype(p0.getApplicableStereotype(FLOWPORT_ID));
+ fp1 = (FlowPort) p1.applyStereotype(p1.getApplicableStereotype(FLOWPORT_ID));
+ fp1.setDirection(FlowDirection.OUT);
+ fp2 = (FlowPort) p2.applyStereotype(p2.getApplicableStereotype(FLOWPORT_ID));
+ fp2.setDirection(FlowDirection.IN);
+ fp2.setIsConjugated(true);
+
+ // Add FlowSpecification
+ fsp2 = (FlowSpecification) i2.applyStereotype(i2.getApplicableStereotype(FLOWSPECIFICATION_ID));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.portandflows.FlowPort#getIcon()
+ * <em>Get Icon</em>}' operation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.portandflows.FlowPort#getIcon()
+ * @generated NOT
+ */
+ public void testGetIcon() {
+
+ // Retrieve Stereotype
+ Port p = fp0.getBase_Port();
+ Stereotype s = p.getAppliedStereotype(FLOWPORT_ID);
+
+ // A = Atomic - NA = Not Atomic - NC = Not conjugated - C = Conjugated
+ // Image i0 = s.getIcons().get(0); // A_IN
+ Image i1 = s.getIcons().get(1); // A_OUT
+ Image i2 = s.getIcons().get(2); // A_INOUT
+ Image i3 = s.getIcons().get(3); // NA_C_IN
+ // Image i4 = s.getIcons().get(4); // NA_C_OUT
+ // Image i5 = s.getIcons().get(5); // NA_C_INOUT
+ // Image i6 = s.getIcons().get(6); // NA_NC_IN
+ // Image i7 = s.getIcons().get(7); // NA_NC_OUT
+ // Image i8 = s.getIcons().get(8); // NA_NC_INOUT
+
+ if (!fp0.getIcon().equals(i2)) {
+ fail();
+ }
+
+ if (!fp1.getIcon().equals(i1)) {
+ fail();
+ }
+
+ if (!fp2.getIcon().equals(i3)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.portandflows.FlowPort#isIsAtomic()
+ * <em>Is Atomic</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.portandflows.FlowPort#isIsAtomic()
+ * @generated NOT
+ */
+ public void testIsIsAtomic() {
+
+ // FlowPort without type is Atomic
+ if (!fp0.isIsAtomic()) {
+ fail();
+ }
+
+ // FlowPort type is not a FlowSpecification
+ if (!fp1.isIsAtomic()) {
+ fail();
+ }
+
+ // FlowPort type is a FlowSpecification
+ if (fp2.isIsAtomic()) {
+ fail();
+ }
+ }
+
+} // FlowPortTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPropertyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPropertyTest.java
new file mode 100644
index 00000000000..88dc10334d0
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowPropertyTest.java
@@ -0,0 +1,182 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.portandflows.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.portandflows.FlowDirection;
+import org.eclipse.papyrus.sysml.portandflows.FlowProperty;
+import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.uml2.uml.Image;
+import org.eclipse.uml2.uml.Interface;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Flow Property</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following operations are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.portandflows.FlowProperty#getIcon() <em>Get Icon</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FlowPropertyTest extends TestCase {
+
+ public static String FLOWPROPERTY_ID = "SysML::PortAndFlows::FlowProperty";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(FlowPropertyTest.class);
+ }
+
+ /**
+ * The fixture for this Flow Property test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ protected FlowProperty fixture = null;
+
+ protected Interface i = null;
+
+ protected FlowProperty fp0 = null;
+
+ protected FlowProperty fp1 = null;
+
+ protected FlowProperty fp2 = null;
+
+ protected Model model = null;
+
+ /**
+ * Constructs a new Flow Property test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public FlowPropertyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Flow Property test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected FlowProperty getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Flow Property test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void setFixture(FlowProperty fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(PortandflowsFactory.eINSTANCE.createFlowProperty());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create interface
+ i = model.createOwnedInterface("i");
+
+ // Create properties
+ Property p0 = i.createOwnedAttribute("p0", null);
+ Property p1 = i.createOwnedAttribute("p1", null);
+ Property p2 = i.createOwnedAttribute("p2", null);
+
+ // Add FlowPort stereotypes
+ fp0 = (FlowProperty) p0.applyStereotype(p0.getApplicableStereotype(FLOWPROPERTY_ID));
+ fp0.setDirection(FlowDirection.IN);
+
+ fp1 = (FlowProperty) p1.applyStereotype(p1.getApplicableStereotype(FLOWPROPERTY_ID));
+ fp1.setDirection(FlowDirection.OUT);
+
+ fp2 = (FlowProperty) p2.applyStereotype(p2.getApplicableStereotype(FLOWPROPERTY_ID));
+ fp2.setDirection(FlowDirection.INOUT);
+
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.portandflows.FlowProperty#getIcon()
+ * <em>Get Icon</em>}' operation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.portandflows.FlowProperty#getIcon()
+ * @generated NOT
+ */
+ public void testGetIcon() {
+
+ // Retrieve Stereotype
+ Property p = fp0.getBase_Property();
+ Stereotype s = p.getAppliedStereotype(FLOWPROPERTY_ID);
+
+ Image i0 = s.getIcons().get(0); // IN
+ Image i1 = s.getIcons().get(1); // OUT
+ Image i2 = s.getIcons().get(2); // INOUT
+
+ if (!fp0.getIcon().equals(i0)) {
+ fail();
+ }
+
+ if (!fp1.getIcon().equals(i1)) {
+ fail();
+ }
+
+ if (!fp2.getIcon().equals(i2)) {
+ fail();
+ }
+ }
+
+} // FlowPropertyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowSpecificationTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowSpecificationTest.java
new file mode 100644
index 00000000000..55ade2fba58
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/FlowSpecificationTest.java
@@ -0,0 +1,99 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.portandflows.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.portandflows.FlowSpecification;
+import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Flow Specification</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class FlowSpecificationTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(FlowSpecificationTest.class);
+ }
+
+ /**
+ * The fixture for this Flow Specification test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected FlowSpecification fixture = null;
+
+ /**
+ * Constructs a new Flow Specification test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public FlowSpecificationTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Flow Specification test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected FlowSpecification getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Flow Specification test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(FlowSpecification fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(PortandflowsFactory.eINSTANCE.createFlowSpecification());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // FlowSpecificationTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/ItemFlowTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/ItemFlowTest.java
new file mode 100644
index 00000000000..6627f34e1b9
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/ItemFlowTest.java
@@ -0,0 +1,97 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.portandflows.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.portandflows.ItemFlow;
+import org.eclipse.papyrus.sysml.portandflows.PortandflowsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Item Flow</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class ItemFlowTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ItemFlowTest.class);
+ }
+
+ /**
+ * The fixture for this Item Flow test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ItemFlow fixture = null;
+
+ /**
+ * Constructs a new Item Flow test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public ItemFlowTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Item Flow test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected ItemFlow getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Item Flow test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(ItemFlow fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(PortandflowsFactory.eINSTANCE.createItemFlow());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // ItemFlowTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/PortandflowsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/PortandflowsTests.java
new file mode 100644
index 00000000000..ad046594185
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/portandflows/tests/PortandflowsTests.java
@@ -0,0 +1,58 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.portandflows.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>portandflows</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class PortandflowsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new PortandflowsTests("portandflows Tests");
+ suite.addTestSuite(FlowPortTest.class);
+ suite.addTestSuite(FlowPropertyTest.class);
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PortandflowsTests(String name) {
+ super(name);
+ }
+
+} // PortandflowsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/CopyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/CopyTest.java
new file mode 100644
index 00000000000..805f0df76f4
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/CopyTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.Copy;
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Copy</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class CopyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(CopyTest.class);
+ }
+
+ /**
+ * The fixture for this Copy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Copy fixture = null;
+
+ /**
+ * Constructs a new Copy test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public CopyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Copy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Copy getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Copy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Copy fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createCopy());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // CopyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/DeriveReqtTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/DeriveReqtTest.java
new file mode 100644
index 00000000000..dbe30f02873
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/DeriveReqtTest.java
@@ -0,0 +1,98 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Derive Reqt</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class DeriveReqtTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(DeriveReqtTest.class);
+ }
+
+ /**
+ * The fixture for this Derive Reqt test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected DeriveReqt fixture = null;
+
+ /**
+ * Constructs a new Derive Reqt test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public DeriveReqtTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Derive Reqt test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected DeriveReqt getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Derive Reqt test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void setFixture(DeriveReqt fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createDeriveReqt());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // DeriveReqtTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementRelatedTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementRelatedTest.java
new file mode 100644
index 00000000000..2db8ee40684
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementRelatedTest.java
@@ -0,0 +1,405 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.Requirement;
+import org.eclipse.papyrus.sysml.requirements.RequirementRelated;
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+import org.eclipse.papyrus.sysml.requirements.Satisfy;
+import org.eclipse.papyrus.sysml.requirements.Verify;
+import org.eclipse.papyrus.sysml.utils.StdResource;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.papyrus.uml.standard.Refine;
+import org.eclipse.papyrus.uml.standard.Trace;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Requirement Related</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getTracedFrom() <em>Traced
+ * From</em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getSatisfies() <em>Satisfies
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getRefines() <em>Refines
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getVerifies() <em>Verifies
+ * </em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RequirementRelatedTest extends TestCase {
+
+ /**
+ * The fixture for this Requirement Related test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated NOT
+ */
+ public static String SATISFY_ID = "SysML::Requirements::Satisfy";
+
+ public static String VERIFY_ID = "SysML::Requirements::Verify";
+
+ public static String TESTCASE_ID = "SysML::Requirements::TestCase";
+
+ public static String REQUIREMENT_ID = "SysML::Requirements::Requirement";
+
+ public static String REQUIREMENT_RELATED_ID = "SysML::Requirements::RequirementRelated";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(RequirementRelatedTest.class);
+ }
+
+ protected RequirementRelated fixture = null;
+
+ protected RequirementRelated default_reqR = null;
+
+ protected Model model = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ protected Requirement trace1_req = null;
+
+ protected Requirement trace2_req = null;
+
+ protected RequirementRelated traced_reqR = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Requirement satisfied1_req = null;
+
+ protected Requirement satisfied2_req = null;
+
+ protected RequirementRelated satisfying_reqR = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Requirement verified1_req = null;
+
+ protected Requirement verified2_req = null;
+
+ protected RequirementRelated verifying_reqR = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Requirement refined1_req = null;
+
+ protected Requirement refined2_req = null;
+
+ protected RequirementRelated refining_reqR = null;
+
+ // ////////////////////////////////////////////////////////////////////
+
+ /**
+ * Constructs a new Requirement Related test case with the given name. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RequirementRelatedTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Requirement Related test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected RequirementRelated getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Requirement Related test case. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(RequirementRelated fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createRequirementRelated());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create classes & interface
+ Class defaultClass = model.createOwnedClass("defaultClass", false);
+
+ // Add Requirement stereotypes
+ default_reqR = (RequirementRelated) defaultClass.applyStereotype(defaultClass
+ .getApplicableStereotype(REQUIREMENT_RELATED_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getTracedFrom test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class traced = model.createOwnedClass("traced", false);
+ traced_reqR = (RequirementRelated) traced.applyStereotype(traced
+ .getApplicableStereotype(REQUIREMENT_RELATED_ID));
+
+ Class trace1 = model.createOwnedClass("trace1", false);
+ trace1_req = (Requirement) trace1.applyStereotype(trace1.getApplicableStereotype(REQUIREMENT_ID));
+ Class trace2 = model.createOwnedClass("trace2", false);
+ trace2_req = (Requirement) trace2.applyStereotype(trace2.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "Trace" (Abstraction)
+ // trace1, trace2 -> traced
+ Abstraction t11 = UMLFactory.eINSTANCE.createAbstraction();
+ t11.getClients().add(trace1);
+ t11.getSuppliers().add(traced);
+ model.getPackagedElements().add(t11);
+ @SuppressWarnings("unused")
+ Trace t_t11 = (Trace) t11.applyStereotype(t11.getApplicableStereotype(StdResource.TRACE_ID));
+
+ Abstraction t12 = UMLFactory.eINSTANCE.createAbstraction();
+ t12.getClients().add(trace2);
+ t12.getSuppliers().add(traced);
+ model.getPackagedElements().add(t12);
+ @SuppressWarnings("unused")
+ Trace t_t12 = (Trace) t12.applyStereotype(t12.getApplicableStereotype(StdResource.TRACE_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getSatisfies() test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class satisfying = model.createOwnedClass("satisfying", false);
+ satisfying_reqR = (RequirementRelated) satisfying.applyStereotype(satisfying
+ .getApplicableStereotype(REQUIREMENT_RELATED_ID));
+
+ Class satisfied1 = model.createOwnedClass("satisfied1", false);
+ satisfied1_req = (Requirement) satisfied1.applyStereotype(satisfied1.getApplicableStereotype(REQUIREMENT_ID));
+ Class satisfied2 = model.createOwnedClass("satisfied2", false);
+ satisfied2_req = (Requirement) satisfied2.applyStereotype(satisfied2.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "Satisfy" (Realization)
+ // satisfying_reqR -> satisfied1_req, satisfied2_req
+ Realization s1 = UMLFactory.eINSTANCE.createRealization();
+ s1.getClients().add(satisfying);
+ s1.getSuppliers().add(satisfied1);
+ model.getPackagedElements().add(s1);
+ @SuppressWarnings("unused")
+ Satisfy s_s1 = (Satisfy) s1.applyStereotype(s1.getApplicableStereotype(SATISFY_ID));
+
+ Realization s2 = UMLFactory.eINSTANCE.createRealization();
+ s2.getClients().add(satisfying);
+ s2.getSuppliers().add(satisfied2);
+ model.getPackagedElements().add(s2);
+ @SuppressWarnings("unused")
+ Satisfy s_s2 = (Satisfy) s2.applyStereotype(s2.getApplicableStereotype(SATISFY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getVerifies() test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class verifying = model.createOwnedClass("verifying", false);
+ verifying_reqR = (RequirementRelated) verifying.applyStereotype(verifying
+ .getApplicableStereotype(REQUIREMENT_RELATED_ID));
+
+ Class verified1 = model.createOwnedClass("verified1", false);
+ verified1_req = (Requirement) verified1.applyStereotype(verified1.getApplicableStereotype(REQUIREMENT_ID));
+ Class verified2 = model.createOwnedClass("verified2", false);
+ verified2_req = (Requirement) verified2.applyStereotype(verified2.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "Verify" (Realization)
+ // verifying_reqR -> verified1_req, verified2_req
+ Realization v1 = UMLFactory.eINSTANCE.createRealization();
+ v1.getClients().add(verifying);
+ v1.getSuppliers().add(verified1);
+ model.getPackagedElements().add(v1);
+ @SuppressWarnings("unused")
+ Verify v_v1 = (Verify) v1.applyStereotype(v1.getApplicableStereotype(VERIFY_ID));
+
+ Realization v2 = UMLFactory.eINSTANCE.createRealization();
+ v2.getClients().add(verifying);
+ v2.getSuppliers().add(verified2);
+ model.getPackagedElements().add(v2);
+ @SuppressWarnings("unused")
+ Verify v_v2 = (Verify) v2.applyStereotype(v2.getApplicableStereotype(VERIFY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getRefines() test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class refining = model.createOwnedClass("refining", false);
+ refining_reqR = (RequirementRelated) refining.applyStereotype(refining
+ .getApplicableStereotype(REQUIREMENT_RELATED_ID));
+
+ Class refined1 = model.createOwnedClass("refined1", false);
+ refined1_req = (Requirement) refined1.applyStereotype(refined1.getApplicableStereotype(REQUIREMENT_ID));
+ Class refined2 = model.createOwnedClass("refined2", false);
+ refined2_req = (Requirement) refined2.applyStereotype(refined2.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "Refine" (Abstraction)
+ // refining_reqR -> refined1_req, refined2_req
+ Abstraction r1 = UMLFactory.eINSTANCE.createAbstraction();
+ r1.getClients().add(refining);
+ r1.getSuppliers().add(refined1);
+ model.getPackagedElements().add(r1);
+ @SuppressWarnings("unused")
+ Refine r_r1 = (Refine) r1.applyStereotype(r1.getApplicableStereotype(StdResource.REFINE_ID));
+
+ Abstraction r2 = UMLFactory.eINSTANCE.createAbstraction();
+ r2.getClients().add(refining);
+ r2.getSuppliers().add(refined2);
+ model.getPackagedElements().add(r2);
+ @SuppressWarnings("unused")
+ Refine r_r2 = (Refine) r2.applyStereotype(r2.getApplicableStereotype(StdResource.REFINE_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getRefines()
+ * <em>Refines</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.RequirementRelated#getRefines()
+ * @generated NOT
+ */
+ public void testGetRefines() {
+
+ // Isolated RequirementRelated
+ if (!default_reqR.getRefines().isEmpty()) {
+ fail();
+ }
+
+ // refining_reqR.getRefines() = [refined1_req, refined2_req]
+ if (!refining_reqR.getRefines().contains(refined1_req)) {
+ fail();
+ }
+ if (!refining_reqR.getRefines().contains(refined2_req)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getSatisfies()
+ * <em>Satisfies</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.RequirementRelated#getSatisfies()
+ * @generated NOT
+ */
+ public void testGetSatisfies() {
+
+ // Isolated RequirementRelated
+ if (!default_reqR.getSatisfies().isEmpty()) {
+ fail();
+ }
+
+ // satisfying_reqR.getSatisfies() = [satisfied1_req, satisfied2_req]
+ if (!satisfying_reqR.getSatisfies().contains(satisfied1_req)) {
+ fail();
+ }
+ if (!satisfying_reqR.getSatisfies().contains(satisfied2_req)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getTracedFrom()
+ * <em>Traced From</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.RequirementRelated#getTracedFrom()
+ * @generated NOT
+ */
+ public void testGetTracedFrom() {
+
+ // Isolated RequirementRelated
+ if (!default_reqR.getTracedFrom().isEmpty()) {
+ fail();
+ }
+
+ // traced_reqR.getTraceFrom() = [trace1_Req, trace2_req]
+ if (!traced_reqR.getTracedFrom().contains(trace1_req)) {
+ fail();
+ }
+ if (!traced_reqR.getTracedFrom().contains(trace2_req)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.RequirementRelated#getVerifies()
+ * <em>Verifies</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.RequirementRelated#getVerifies()
+ * @generated NOT
+ */
+ public void testGetVerifies() {
+
+ // Isolated RequirementRelated
+ if (!default_reqR.getVerifies().isEmpty()) {
+ fail();
+ }
+
+ // verifying_reqR.getVerifies() = [verified1_req, verified2_req]
+ if (!verifying_reqR.getVerifies().contains(verified1_req)) {
+ fail();
+ }
+ if (!verifying_reqR.getVerifies().contains(verified2_req)) {
+ fail();
+ }
+
+ }
+
+} // RequirementRelatedTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementTest.java
new file mode 100644
index 00000000000..50094690a77
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementTest.java
@@ -0,0 +1,619 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.Copy;
+import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
+import org.eclipse.papyrus.sysml.requirements.Requirement;
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+import org.eclipse.papyrus.sysml.requirements.Satisfy;
+import org.eclipse.papyrus.sysml.requirements.Verify;
+import org.eclipse.papyrus.sysml.utils.StdResource;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.papyrus.uml.standard.Refine;
+import org.eclipse.papyrus.uml.standard.Trace;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Operation;
+import org.eclipse.uml2.uml.Realization;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Requirement</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getDerived() <em>Derived</em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getDerivedFrom() <em>Derived From
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getSatisfiedBy() <em>Satisfied By
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getRefinedBy() <em>Refined By</em>}
+ * </li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getTracedTo() <em>Traced To</em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getVerifiedBy() <em>Verified By
+ * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.Requirement#getMaster() <em>Master</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RequirementTest extends TestCase {
+
+ /**
+ * The fixture for this Requirement test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static String DERIVEREQT_ID = "SysML::Requirements::DeriveReqt";
+
+ public static String VERIFY_ID = "SysML::Requirements::Verify";
+
+ public static String COPY_ID = "SysML::Requirements::Copy";
+
+ public static String SATISFY_ID = "SysML::Requirements::Satisfy";
+
+ public static String TESTCASE_ID = "SysML::Requirements::TestCase";
+
+ public static String REQUIREMENT_ID = "SysML::Requirements::Requirement";
+
+ public static String REQUIREMENT_RELATED_ID = "SysML::Requirements::RequirementRelated";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(RequirementTest.class);
+ }
+
+ /**
+ * The fixture for this Requirement test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ protected Requirement fixture = null;
+
+ protected Class defaultClass = null;
+
+ protected Requirement default_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ protected Class copy = null;
+
+ protected Class master = null;
+
+ protected Requirement copy_req = null;
+
+ protected Requirement master_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Class derive1 = null;
+
+ protected Class derive2 = null;
+
+ protected Class derived1 = null;
+
+ protected Class derived2 = null;
+
+ protected Requirement derive1_req = null;
+
+ protected Requirement derive2_req = null;
+
+ protected Requirement derived1_req = null;
+
+ protected Requirement derived2_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Class satisfied = null;
+
+ protected Class satisfyingNE1 = null;
+
+ protected Class satisfyingNE2 = null;
+
+ protected Requirement satisfied_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Class refined = null;
+
+ protected Class refiningNE1 = null;
+
+ protected Class refiningNE2 = null;
+
+ protected Requirement refined_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ // ////////////////////////////////////////////////////////////////////
+ protected Class traced1 = null;
+
+ protected Class traced2 = null;
+
+ protected Class trace = null;
+
+ protected Requirement traced1_req = null;
+
+ protected Requirement traced2_req = null;
+
+ protected Requirement trace_req = null;
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ protected Requirement verified_req = null;
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase testCase1 = null;
+
+ // ////////////////////////////////////////////////////////////////////
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase testCase2 = null;
+
+ protected Model model = null;
+
+ /**
+ * Constructs a new Requirement test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public RequirementTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Requirement test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected Requirement getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Requirement test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected void setFixture(Requirement fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createRequirement());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // Create classes & interface
+ defaultClass = model.createOwnedClass("defaultClass", false);
+
+ // Add Requirement stereotypes
+ default_req = (Requirement) defaultClass.applyStereotype(defaultClass.getApplicableStereotype(REQUIREMENT_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getMaster test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ master = model.createOwnedClass("master", false);
+ master_req = (Requirement) master.applyStereotype(master.getApplicableStereotype(REQUIREMENT_ID));
+ copy = model.createOwnedClass("copy", false);
+ copy_req = (Requirement) copy.applyStereotype(copy.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "copy" (Abstraction) between master and copy
+ // copy -> master
+ Abstraction c_m = UMLFactory.eINSTANCE.createAbstraction();
+ c_m.getClients().add(copy);
+ c_m.getSuppliers().add(master);
+ model.getPackagedElements().add(c_m);
+ @SuppressWarnings("unused")
+ Copy copy_c_m = (Copy) c_m.applyStereotype(c_m.getApplicableStereotype(COPY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getDerived / getDerivedFrom test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ derive1 = model.createOwnedClass("d1", false);
+ derive1_req = (Requirement) derive1.applyStereotype(derive1.getApplicableStereotype(REQUIREMENT_ID));
+
+ derive2 = model.createOwnedClass("d2", false);
+ derive2_req = (Requirement) derive2.applyStereotype(derive2.getApplicableStereotype(REQUIREMENT_ID));
+
+ derived1 = model.createOwnedClass("dd1", false);
+ derived1_req = (Requirement) derived1.applyStereotype(derived1.getApplicableStereotype(REQUIREMENT_ID));
+
+ derived2 = model.createOwnedClass("dd2", false);
+ derived2_req = (Requirement) derived2.applyStereotype(derived2.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "DeriveReqt" (Abstraction) between derive and derived
+ // derived1 -> derive1, derive2
+ // derived2 -> derive2
+ Abstraction d11 = UMLFactory.eINSTANCE.createAbstraction();
+ d11.getClients().add(derived1);
+ d11.getSuppliers().add(derive1);
+ model.getPackagedElements().add(d11);
+ @SuppressWarnings("unused")
+ DeriveReqt dreqt_d11 = (DeriveReqt) d11.applyStereotype(d11.getApplicableStereotype(DERIVEREQT_ID));
+
+ Abstraction d12 = UMLFactory.eINSTANCE.createAbstraction();
+ d12.getClients().add(derived1);
+ d12.getSuppliers().add(derive2);
+ model.getPackagedElements().add(d12);
+ @SuppressWarnings("unused")
+ DeriveReqt dreqt_d12 = (DeriveReqt) d12.applyStereotype(d12.getApplicableStereotype(DERIVEREQT_ID));
+
+ Abstraction d22 = UMLFactory.eINSTANCE.createAbstraction();
+ d22.getClients().add(derived2);
+ d22.getSuppliers().add(derive2);
+ model.getPackagedElements().add(d22);
+ @SuppressWarnings("unused")
+ DeriveReqt dreqt_d22 = (DeriveReqt) d22.applyStereotype(d22.getApplicableStereotype(DERIVEREQT_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getSatisfiedBy test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ satisfied = model.createOwnedClass("satisfied", false);
+ satisfied_req = (Requirement) satisfied.applyStereotype(satisfied.getApplicableStereotype(REQUIREMENT_ID));
+
+ satisfyingNE1 = model.createOwnedClass("sNE1", false);
+ satisfyingNE2 = model.createOwnedClass("sNE2", false);
+
+ // Add "Satisfy" (Realization) between satisfyingNE(s) and satisfied
+ // requirement
+ // satisfyingNE1, satisfyingNE2 -> satisfied
+ Realization ne1_s1 = UMLFactory.eINSTANCE.createRealization();
+ ne1_s1.getClients().add(satisfyingNE1);
+ ne1_s1.getSuppliers().add(satisfied);
+ model.getPackagedElements().add(ne1_s1);
+ @SuppressWarnings("unused")
+ Satisfy s_ne1_s1 = (Satisfy) ne1_s1.applyStereotype(ne1_s1.getApplicableStereotype(SATISFY_ID));
+
+ Realization ne2_s1 = UMLFactory.eINSTANCE.createRealization();
+ ne2_s1.getClients().add(satisfyingNE2);
+ ne2_s1.getSuppliers().add(satisfied);
+ model.getPackagedElements().add(ne2_s1);
+ @SuppressWarnings("unused")
+ Satisfy s_ne2_s1 = (Satisfy) ne2_s1.applyStereotype(ne2_s1.getApplicableStereotype(SATISFY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getRefinedBy test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ refined = model.createOwnedClass("refined", false);
+ refined_req = (Requirement) refined.applyStereotype(refined.getApplicableStereotype(REQUIREMENT_ID));
+
+ refiningNE1 = model.createOwnedClass("rNE1", false);
+ refiningNE2 = model.createOwnedClass("rNE2", false);
+
+ // Add "Refine" (Abstraction) between refiningNE(s) and refined
+ // requirement
+ // refiningNE1, refiningNE2 -> refined
+ Abstraction rne1_s1 = UMLFactory.eINSTANCE.createAbstraction();
+ rne1_s1.getClients().add(refiningNE1);
+ rne1_s1.getSuppliers().add(refined);
+ model.getPackagedElements().add(rne1_s1);
+ @SuppressWarnings("unused")
+ Refine s_rne1_s1 = (Refine) rne1_s1.applyStereotype(rne1_s1.getApplicableStereotype(StdResource.REFINE_ID));
+
+ Abstraction rne2_s1 = UMLFactory.eINSTANCE.createAbstraction();
+ rne2_s1.getClients().add(refiningNE2);
+ rne2_s1.getSuppliers().add(refined);
+ model.getPackagedElements().add(rne2_s1);
+ @SuppressWarnings("unused")
+ Refine s_rne2_s1 = (Refine) rne2_s1.applyStereotype(rne2_s1.getApplicableStereotype(StdResource.REFINE_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getTracedTo test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ traced1 = model.createOwnedClass("traced1", false);
+ traced1_req = (Requirement) traced1.applyStereotype(traced1.getApplicableStereotype(REQUIREMENT_ID));
+
+ traced2 = model.createOwnedClass("traced2", false);
+ traced2_req = (Requirement) traced2.applyStereotype(traced2.getApplicableStereotype(REQUIREMENT_ID));
+
+ trace = model.createOwnedClass("trace", false);
+ trace_req = (Requirement) trace.applyStereotype(trace.getApplicableStereotype(REQUIREMENT_ID));
+
+ // Add "Trace" (Abstraction)
+ // [traced1, traced2] -> trace
+ Abstraction t11 = UMLFactory.eINSTANCE.createAbstraction();
+ t11.getClients().add(traced1);
+ t11.getSuppliers().add(trace);
+ model.getPackagedElements().add(t11);
+ @SuppressWarnings("unused")
+ Trace t_t11 = (Trace) t11.applyStereotype(t11.getApplicableStereotype(StdResource.TRACE_ID));
+
+ Abstraction t12 = UMLFactory.eINSTANCE.createAbstraction();
+ t12.getClients().add(traced2);
+ t12.getSuppliers().add(trace);
+ model.getPackagedElements().add(t12);
+ @SuppressWarnings("unused")
+ Trace t_t12 = (Trace) t12.applyStereotype(t12.getApplicableStereotype(StdResource.TRACE_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getVerifiedBy test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class verified = model.createOwnedClass("verified", false);
+ verified_req = (Requirement) verified.applyStereotype(verified.getApplicableStereotype(REQUIREMENT_ID));
+
+ Class testClass = model.createOwnedClass("testClass", false);
+ Operation op1 = testClass.createOwnedOperation("op1", null, null, null);
+ Operation op2 = testClass.createOwnedOperation("op2", null, null, null);
+
+ testCase1 = (org.eclipse.papyrus.sysml.requirements.TestCase) op1.applyStereotype(op1
+ .getApplicableStereotype(TESTCASE_ID));
+ testCase2 = (org.eclipse.papyrus.sysml.requirements.TestCase) op2.applyStereotype(op2
+ .getApplicableStereotype(TESTCASE_ID));
+
+ // Add "Verify" (Abstraction)
+ // testCase1, testCase2 -> verified
+ Abstraction t1_v = UMLFactory.eINSTANCE.createAbstraction();
+ t1_v.getClients().add(op1);
+ t1_v.getSuppliers().add(verified);
+ model.getPackagedElements().add(t1_v);
+ @SuppressWarnings("unused")
+ Verify v_t1_v = (Verify) t1_v.applyStereotype(t1_v.getApplicableStereotype(VERIFY_ID));
+
+ Abstraction t2_v = UMLFactory.eINSTANCE.createAbstraction();
+ t2_v.getClients().add(op2);
+ t2_v.getSuppliers().add(verified);
+ model.getPackagedElements().add(t2_v);
+ @SuppressWarnings("unused")
+ Verify v_t2_v = (Verify) t2_v.applyStereotype(t2_v.getApplicableStereotype(VERIFY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getDerived()
+ * <em>Derived</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getDerived()
+ * @generated NOT
+ */
+ public void testGetDerived() {
+
+ // Isolated requirement : default_req.getDerived() = []
+ if (!default_req.getDerived().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : derive1_req.getDerived() = [derived1_req]
+ if (!derive1_req.getDerived().contains(derived1_req)) {
+ fail();
+ }
+
+ // Verifies : derive2_req.getDerived() = [derived1_req, derived2_req]
+ if (!derive2_req.getDerived().contains(derived1_req)) {
+ fail();
+ }
+
+ if (!derive2_req.getDerived().contains(derived2_req)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getDerivedFrom()
+ * <em>Derived From</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getDerivedFrom()
+ * @generated NOT
+ */
+ public void testGetDerivedFrom() {
+
+ // Isolated requirement : default_req.getDerivedFrom() = []
+ if (!default_req.getDerivedFrom().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : derived2_req.getDerivedFrom() = [derive2_req]
+ if (!derived2_req.getDerivedFrom().contains(derive2_req)) {
+ fail();
+ }
+
+ // Verifies : derived1_req.getDerivedFrom() = [derive1_req, derive2_req]
+ if (!derived1_req.getDerivedFrom().contains(derive1_req)) {
+ fail();
+ }
+ if (!derived1_req.getDerivedFrom().contains(derive2_req)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getMaster()
+ * <em>Master</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getMaster()
+ * @generated NOT
+ */
+ public void testGetMaster() {
+
+ // Isolated requirement : default_req.getMaster() = null
+ if (default_req.getMaster() != null) {
+ fail();
+ }
+
+ // Try retrieving Master from Copy requirement
+ if (!master_req.equals(copy_req.getMaster())) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getRefinedBy()
+ * <em>Refined By</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getRefinedBy()
+ * @generated NOT
+ */
+ public void testGetRefinedBy() {
+
+ // Isolated requirement : default_req.getRefinedBy() = []
+ if (!default_req.getRefinedBy().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : refined_req.getRefinedBy() = [refiningNE1, refiningNE2]
+ if (!refined_req.getRefinedBy().contains(refiningNE1)) {
+ fail();
+ }
+ if (!refined_req.getRefinedBy().contains(refiningNE2)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getSatisfiedBy()
+ * <em>Satisfied By</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getSatisfiedBy()
+ * @generated NOT
+ */
+ public void testGetSatisfiedBy() {
+
+ // Isolated requirement : default_req.getSatisfiedBy() = []
+ if (!default_req.getSatisfiedBy().isEmpty()) {
+ fail();
+ }
+
+ // Verifies : satisfied_req.getSatisfiedBy() = [satisfyingNE1, satisfyingNE2]
+ if (!satisfied_req.getSatisfiedBy().contains(satisfyingNE1)) {
+ fail();
+ }
+ if (!satisfied_req.getSatisfiedBy().contains(satisfyingNE2)) {
+ fail();
+ }
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getTracedTo()
+ * <em>Traced To</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getTracedTo()
+ * @generated NOT
+ */
+ public void testGetTracedTo() {
+
+ // Isolated requirement : default_req.getTracedTo = []
+ if (!default_req.getTracedTo().isEmpty()) {
+ fail();
+ }
+
+ // DeriveReqt / Verify / Copy inherits from Trace
+ // Test getter through Copy
+ if (!master_req.getTracedTo().contains(copy)) {
+ fail();
+ }
+
+ // Test getter through DeriveReqt (tracedTo = Clients)
+ // derived1 -> [derive1_req, derive2_req]
+ // derived2 -> [derive2_req]
+ if (!derive1_req.getTracedTo().contains(derived1)) {
+ fail();
+ }
+ if (!derive2_req.getTracedTo().contains(derived1)) {
+ fail();
+ }
+ if (!derive2_req.getTracedTo().contains(derived2)) {
+ fail();
+ }
+
+ // Test getter through Verify
+ // Should not happen...
+
+ // Direct test
+ if (!trace_req.getTracedTo().contains(traced1)) {
+ fail();
+ }
+ if (!trace_req.getTracedTo().contains(traced2)) {
+ fail();
+ }
+
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.Requirement#getVerifiedBy()
+ * <em>Verified By</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.Requirement#getVerifiedBy()
+ * @generated NOT
+ */
+ public void testGetVerifiedBy() {
+
+ // Isolated requirement : default_req.getVerifiedBy() = []
+ if (!default_req.getVerifiedBy().isEmpty()) {
+ fail();
+ }
+
+ // Test getVerifiedBy getter for
+ // [testCase1, testCase2] -> verified_req
+ if (!verified_req.getVerifiedBy().contains(testCase1)) {
+ fail();
+ }
+ if (!verified_req.getVerifiedBy().contains(testCase2)) {
+ fail();
+ }
+ }
+
+} // RequirementTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementsTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementsTests.java
new file mode 100644
index 00000000000..d89eae47e83
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/RequirementsTests.java
@@ -0,0 +1,59 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>requirements</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class RequirementsTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new RequirementsTests("requirements Tests");
+ suite.addTestSuite(TestCaseTest.class);
+ suite.addTestSuite(RequirementTest.class);
+ suite.addTestSuite(RequirementRelatedTest.class);
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RequirementsTests(String name) {
+ super(name);
+ }
+
+} // RequirementsTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/SatisfyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/SatisfyTest.java
new file mode 100644
index 00000000000..8e51381cdeb
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/SatisfyTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+import org.eclipse.papyrus.sysml.requirements.Satisfy;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Satisfy</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class SatisfyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(SatisfyTest.class);
+ }
+
+ /**
+ * The fixture for this Satisfy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Satisfy fixture = null;
+
+ /**
+ * Constructs a new Satisfy test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public SatisfyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Satisfy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Satisfy getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Satisfy test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Satisfy fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createSatisfy());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // SatisfyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/TestCaseTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/TestCaseTest.java
new file mode 100644
index 00000000000..5132f535de8
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/TestCaseTest.java
@@ -0,0 +1,218 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.Requirement;
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+import org.eclipse.papyrus.sysml.requirements.Verify;
+import org.eclipse.papyrus.sysml.utils.SysMLTestResources;
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Operation;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Test Case</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are tested:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.sysml.requirements.TestCase#getVerifies() <em>Verifies</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class TestCaseTest extends TestCase {
+
+ /**
+ * The fixture for this Test Case test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static String VERIFY_ID = "SysML::Requirements::Verify";
+
+ public static String TESTCASE_ID = "SysML::Requirements::TestCase";
+
+ public static String REQUIREMENT_ID = "SysML::Requirements::Requirement";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(TestCaseTest.class);
+ }
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase fixture = null;
+
+ // ////////////////////////////////////////////////////////////////////
+ protected Model model = null;
+
+ protected Requirement verified1_req = null;
+
+ protected Requirement verified2_req = null;
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase testCase0 = null;
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase testCase1 = null;
+
+ protected org.eclipse.papyrus.sysml.requirements.TestCase testCase2 = null;
+
+ // ////////////////////////////////////////////////////////////////////
+
+ /**
+ * Constructs a new Test Case test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public TestCaseTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Test Case test case. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ protected org.eclipse.papyrus.sysml.requirements.TestCase getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Test Case test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(org.eclipse.papyrus.sysml.requirements.TestCase fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated NOT
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createTestCase());
+
+ // Prepare test
+ model = SysMLTestResources.createSysMLModel();
+ if (model == null) {
+ fail();
+ }
+
+ if (model.getAppliedProfiles().isEmpty()) {
+ fail();
+ }
+
+ // ////////////////////////////////////////////////////////////////////
+ // Prepare getVerifies test elements
+ // ////////////////////////////////////////////////////////////////////
+
+ Class verified1 = model.createOwnedClass("verified1", false);
+ verified1_req = (Requirement) verified1.applyStereotype(verified1.getApplicableStereotype(REQUIREMENT_ID));
+
+ Class verified2 = model.createOwnedClass("verified2", false);
+ verified2_req = (Requirement) verified2.applyStereotype(verified2.getApplicableStereotype(REQUIREMENT_ID));
+
+ Class testClass = model.createOwnedClass("testClass", false);
+ Operation op0 = testClass.createOwnedOperation("op0", null, null, null);
+ Operation op1 = testClass.createOwnedOperation("op1", null, null, null);
+ Operation op2 = testClass.createOwnedOperation("op2", null, null, null);
+
+ testCase0 = (org.eclipse.papyrus.sysml.requirements.TestCase) op0.applyStereotype(op0
+ .getApplicableStereotype(TESTCASE_ID));
+ testCase1 = (org.eclipse.papyrus.sysml.requirements.TestCase) op1.applyStereotype(op1
+ .getApplicableStereotype(TESTCASE_ID));
+ testCase2 = (org.eclipse.papyrus.sysml.requirements.TestCase) op2.applyStereotype(op2
+ .getApplicableStereotype(TESTCASE_ID));
+
+ // Add "Verify" (Abstraction)
+ // testCase1, testCase2 -> verified1
+ // testCase2 -> verified2
+ Abstraction t1_v1 = UMLFactory.eINSTANCE.createAbstraction();
+ t1_v1.getClients().add(op1);
+ t1_v1.getSuppliers().add(verified1);
+ model.getPackagedElements().add(t1_v1);
+ @SuppressWarnings("unused")
+ Verify v_t1_v1 = (Verify) t1_v1.applyStereotype(t1_v1.getApplicableStereotype(VERIFY_ID));
+
+ Abstraction t1_v2 = UMLFactory.eINSTANCE.createAbstraction();
+ t1_v2.getClients().add(op1);
+ t1_v2.getSuppliers().add(verified2);
+ model.getPackagedElements().add(t1_v2);
+ @SuppressWarnings("unused")
+ Verify v_t1_v2 = (Verify) t1_v2.applyStereotype(t1_v2.getApplicableStereotype(VERIFY_ID));
+
+ Abstraction t2_v2 = UMLFactory.eINSTANCE.createAbstraction();
+ t2_v2.getClients().add(op2);
+ t2_v2.getSuppliers().add(verified2);
+ model.getPackagedElements().add(t2_v2);
+ @SuppressWarnings("unused")
+ Verify v_t2_v2 = (Verify) t2_v2.applyStereotype(t2_v2.getApplicableStereotype(VERIFY_ID));
+
+ // ////////////////////////////////////////////////////////////////////
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+ /**
+ * Tests the '{@link org.eclipse.papyrus.sysml.requirements.TestCase#getVerifies()
+ * <em>Verifies</em>}' feature getter. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.requirements.TestCase#getVerifies()
+ * @generated NOT
+ */
+ public void testGetVerifies() {
+
+ // testCase0 -> []
+ if (!testCase0.getVerifies().isEmpty()) {
+ fail();
+ }
+
+ // testCase1 -> [verified1_req, verified2_req]
+ if (!testCase1.getVerifies().contains(verified1_req)) {
+ fail();
+ }
+ if (!testCase1.getVerifies().contains(verified2_req)) {
+ fail();
+ }
+
+ // testCase2 -> [verified2_req]
+ if (!testCase2.getVerifies().contains(verified2_req)) {
+ fail();
+ }
+
+ }
+
+} // TestCaseTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/VerifyTest.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/VerifyTest.java
new file mode 100644
index 00000000000..6ea1539de76
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/requirements/tests/VerifyTest.java
@@ -0,0 +1,96 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.requirements.tests;
+
+import junit.framework.TestCase;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.requirements.RequirementsFactory;
+import org.eclipse.papyrus.sysml.requirements.Verify;
+
+/**
+ * <!-- begin-user-doc --> A test case for the model object '<em><b>Verify</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class VerifyTest extends TestCase {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(VerifyTest.class);
+ }
+
+ /**
+ * The fixture for this Verify test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Verify fixture = null;
+
+ /**
+ * Constructs a new Verify test case with the given name. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ public VerifyTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Verify test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Verify getFixture() {
+ return fixture;
+ }
+
+ /**
+ * Sets the fixture for this Verify test case. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void setFixture(Verify fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ @Override
+ protected void setUp() throws Exception {
+ setFixture(RequirementsFactory.eINSTANCE.createVerify());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} // VerifyTest
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/statemachines/tests/StatemachinesTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/statemachines/tests/StatemachinesTests.java
new file mode 100644
index 00000000000..6d7fd44139a
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/statemachines/tests/StatemachinesTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.statemachines.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>statemachines</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class StatemachinesTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new StatemachinesTests("statemachines Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public StatemachinesTests(String name) {
+ super(name);
+ }
+
+} // StatemachinesTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlAllTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlAllTests.java
new file mode 100644
index 00000000000..4a7b9baafee
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlAllTests.java
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.eclipse.papyrus.sysml.allocations.tests.AllocationsTests;
+import org.eclipse.papyrus.sysml.modelelements.tests.ModelelementsTests;
+import org.eclipse.papyrus.sysml.portandflows.tests.PortandflowsTests;
+import org.eclipse.papyrus.sysml.requirements.tests.RequirementsTests;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>Sysml</b></em>' model. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class SysmlAllTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new SysmlAllTests("Sysml Tests");
+ suite.addTest(ModelelementsTests.suite());
+ suite.addTest(PortandflowsTests.suite());
+ suite.addTest(AllocationsTests.suite());
+ suite.addTest(RequirementsTests.suite());
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SysmlAllTests(String name) {
+ super(name);
+ }
+
+} // SysmlAllTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlTests.java
new file mode 100644
index 00000000000..6e69dca0daf
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/tests/SysmlTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>sysml</b></em>' package. <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+public class SysmlTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new SysmlTests("sysml Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SysmlTests(String name) {
+ super(name);
+ }
+
+} // SysmlTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/usecases/tests/UsecasesTests.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/usecases/tests/UsecasesTests.java
new file mode 100644
index 00000000000..5b173e79214
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/usecases/tests/UsecasesTests.java
@@ -0,0 +1,56 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.usecases.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc --> A test suite for the '<em><b>usecases</b></em>' package. <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+public class UsecasesTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new UsecasesTests("usecases Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public UsecasesTests(String name) {
+ super(name);
+ }
+
+} // UsecasesTests
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/StdResource.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/StdResource.java
new file mode 100644
index 00000000000..96e1b8f7f99
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/StdResource.java
@@ -0,0 +1,26 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.sysml.utils;
+
+/**
+ *
+ */
+public interface StdResource {
+
+ // Stereotypes ids
+ public static String REFINE_ID = "Standard::Refine";
+
+ public static String TRACE_ID = "Standard::Trace";
+}
diff --git a/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/SysMLTestResources.java b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/SysMLTestResources.java
new file mode 100644
index 00000000000..d390a8987f4
--- /dev/null
+++ b/tests/org.eclipse.papyrus.sysml.tests/src/org/eclipse/papyrus/sysml/utils/SysMLTestResources.java
@@ -0,0 +1,144 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Yann Tanguy (CEA LIST) yann.tanguy@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.utils;
+
+import java.io.IOException;
+import java.util.Iterator;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.URIConverter;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.papyrus.umlutils.PackageUtil;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.resource.UMLResource;
+import org.eclipse.uml2.uml.util.UMLUtil;
+
+public class SysMLTestResources {
+
+ protected static final ResourceSet RESOURCE_SET = new ResourceSetImpl();
+
+ /**
+ * Profile URI
+ */
+ public static String SYSML_PROFILE_URI = "pathmap://SysML_PROFILES/SysML.profile.uml";
+
+ /**
+ * Creates a model with SysML profile applied for JUnit test
+ *
+ * @return the created model
+ */
+ public static Model createSysMLModel() {
+
+ SysMLTestResources.registerResourceFactories();
+
+ Model model = null;
+ model = UMLFactory.eINSTANCE.createModel();
+ model.setName("TestSysML");
+
+ Resource resource = RESOURCE_SET.createResource(URI.createURI("temp.uml"));
+ resource.getContents().add(model);
+
+ // Apply UML Standard profile
+ // Retrieve standard profile
+ Profile umlStdProfile = (Profile) load(URI.createURI(UMLResource.STANDARD_PROFILE_URI));
+ // Apply to new model
+ model.applyProfile(umlStdProfile);
+
+ // Retrieve SysML profile
+ Profile sysml = (Profile) load(URI.createURI(SYSML_PROFILE_URI));
+
+ // Apply SysML profile and its nested profiles to new model
+ if (sysml != null) {
+
+ model.applyProfile(sysml);
+
+ Iterator<Profile> profiles = PackageUtil.getSubProfiles(sysml).iterator();
+ while (profiles.hasNext()) {
+ Profile current = profiles.next();
+ model.applyProfile(current);
+ }
+
+ } else {
+ // model is null
+ }
+
+ return model;
+ }
+
+ protected static org.eclipse.uml2.uml.Package load(URI uri) {
+ org.eclipse.uml2.uml.Package package_ = null;
+
+ try {
+
+ Resource resource = RESOURCE_SET.getResource(uri, true);
+
+ package_ = (org.eclipse.uml2.uml.Package) EcoreUtil.getObjectByType(resource.getContents(),
+ UMLPackage.Literals.PACKAGE);
+
+ } catch (WrappedException we) {
+ // null package
+ }
+
+ return package_;
+
+ }
+
+ protected static void registerPathmaps(URI uri) {
+ URIConverter.URI_MAP.put(URI.createURI(UMLResource.LIBRARIES_PATHMAP), uri.appendSegment("libraries")
+ .appendSegment(""));
+
+ URIConverter.URI_MAP.put(URI.createURI(UMLResource.METAMODELS_PATHMAP), uri.appendSegment("metamodels")
+ .appendSegment(""));
+
+ URIConverter.URI_MAP.put(URI.createURI(UMLResource.PROFILES_PATHMAP), uri.appendSegment("profiles")
+ .appendSegment(""));
+ }
+
+ protected static void registerResourceFactories() {
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION,
+ UMLResource.Factory.INSTANCE);
+ }
+
+ protected static void save(org.eclipse.uml2.uml.Package package_, URI uri) {
+ Resource resource = RESOURCE_SET.createResource(uri);
+ EList<EObject> contents = resource.getContents();
+
+ contents.add(package_);
+
+ for (Iterator<?> allContents = UMLUtil.getAllContents(package_, true, false); allContents.hasNext();) {
+
+ EObject eObject = (EObject) allContents.next();
+
+ if (eObject instanceof Element) {
+ contents.addAll(((Element) eObject).getStereotypeApplications());
+ }
+ }
+
+ try {
+ resource.save(null);
+ } catch (IOException ioe) {
+ // err
+ }
+ }
+}

Back to the top