Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Lorenzo2019-06-14 09:28:49 +0000
committerVincent Lorenzo2019-06-21 08:30:35 +0000
commit76f66d04d3cde2f2002f386c64a02627c7eb9195 (patch)
tree162ad1bc9d129ae4d1f465c15aac49b8919717ef /tests
parent1efd26afe7402f9ccb4b8441a0c10b1b3023c25e (diff)
downloadorg.eclipse.papyrus-76f66d04d3cde2f2002f386c64a02627c7eb9195.tar.gz
org.eclipse.papyrus-76f66d04d3cde2f2002f386c64a02627c7eb9195.tar.xz
org.eclipse.papyrus-76f66d04d3cde2f2002f386c64a02627c7eb9195.zip
Bug 548237: [Expression] Papyrus must provide new expressions check single valued EAttribute and Stereotype Properties values (equality tests)
- add SingleStereotypeAttributeEqualityExpression element in UML Expression - add JUnit tests for the new expressions - contribute to EMF Property View - declare editor for this property view - connect the string editor for stereotype qualified name to the UML Expression Papyrus property view Change-Id: I4ed865b6f23f4e06a46b4fd15d5c31fb306350d7 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/META-INF/MANIFEST.MF2
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/pom.xml2
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.notation126
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.uml21
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.notation119
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.uml245
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/AllTests.java13
-rwxr-xr-xtests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/SingleStereotypeAttributeEqualityExpressionTests.java172
8 files changed, 628 insertions, 72 deletions
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/META-INF/MANIFEST.MF
index 67e43bb93c9..5fde6bb4849 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/META-INF/MANIFEST.MF
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: org.eclipse.papyrus.uml.expressions.tests
-Bundle-Version: 1.0.0.qualifier
+Bundle-Version: 1.1.0.qualifier
Bundle-Vendor: %Bundle-Vendor
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)",
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/pom.xml b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/pom.xml
index 26dbb6e2972..99db84c5c80 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/pom.xml
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/pom.xml
@@ -8,7 +8,7 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.papyrus.uml.expressions.tests</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<description>Tests for the UML Expressions Framework.</description>
</project> \ No newline at end of file
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.notation b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.notation
index 9dc556b450c..071c4e85371 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.notation
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.notation
@@ -82,22 +82,6 @@
<element xmi:type="uml:Class" href="expressionModelTest.uml#_TK3aIC0TEee42cCIRX36lw"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_TLBLIS0TEee42cCIRX36lw" x="480" y="60" width="201" height="141"/>
</children>
- <children xmi:type="notation:Shape" xmi:id="_3ooXsC0TEee42cCIRX36lw" type="StereotypeComment">
- <styles xmi:type="notation:TitleStyle" xmi:id="_3ooXsS0TEee42cCIRX36lw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_3ooXsy0TEee42cCIRX36lw" name="BASE_ELEMENT">
- <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_TK3aIC0TEee42cCIRX36lw"/>
- </styles>
- <element xsi:nil="true"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3ooXsi0TEee42cCIRX36lw" x="680" y="60"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_A6ngdC0UEee42cCIRX36lw" type="StereotypeComment">
- <styles xmi:type="notation:TitleStyle" xmi:id="_A6ngdS0UEee42cCIRX36lw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_A6ngdy0UEee42cCIRX36lw" name="BASE_ELEMENT">
- <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_UsJ70CgzEeeoAJG6t_MwCA"/>
- </styles>
- <element xsi:nil="true"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_A6ngdi0UEee42cCIRX36lw" x="320" y="60"/>
- </children>
<children xmi:type="notation:Shape" xmi:id="_vI_ZULAiEee43bo6S9i5Mw" type="Class_Shape">
<children xmi:type="notation:DecorationNode" xmi:id="_vJAAYLAiEee43bo6S9i5Mw" type="Class_NameLabel"/>
<children xmi:type="notation:DecorationNode" xmi:id="_vJAAYbAiEee43bo6S9i5Mw" type="Class_FloatingNameLabel">
@@ -124,48 +108,108 @@
<element xmi:type="uml:Class" href="expressionModelTest.uml#_vI55wLAiEee43bo6S9i5Mw"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_vI_ZUbAiEee43bo6S9i5Mw" x="480" y="240" width="201" height="101"/>
</children>
- <children xmi:type="notation:Shape" xmi:id="_BKFAMLAjEee43bo6S9i5Mw" type="StereotypeComment">
- <styles xmi:type="notation:TitleStyle" xmi:id="_BKFAMbAjEee43bo6S9i5Mw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_BKFnQLAjEee43bo6S9i5Mw" name="BASE_ELEMENT">
+ <children xmi:type="notation:Shape" xmi:id="_AmXiEI6aEemjwpaBkaWY0Q" type="Class_Shape">
+ <children xmi:type="notation:DecorationNode" xmi:id="_AmYJII6aEemjwpaBkaWY0Q" type="Class_NameLabel"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AmYJIY6aEemjwpaBkaWY0Q" type="Class_FloatingNameLabel">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AmYJIo6aEemjwpaBkaWY0Q" y="15"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AmYJI46aEemjwpaBkaWY0Q" type="Class_AttributeCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AmYJJI6aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AmYJJY6aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AmYJJo6aEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AmYJJ46aEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AmYJKI6aEemjwpaBkaWY0Q" type="Class_OperationCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AmYJKY6aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AmYJKo6aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AmYJK46aEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AmYJLI6aEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AmYJLY6aEemjwpaBkaWY0Q" type="Class_NestedClassifierCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AmYJLo6aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AmYJL46aEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AmYJMI6aEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AmYJMY6aEemjwpaBkaWY0Q"/>
+ </children>
+ <element xmi:type="uml:Class" href="expressionModelTest.uml#_AmW7AI6aEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AmXiEY6aEemjwpaBkaWY0Q" x="840" y="60" height="141"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_isvQ0I6iEemjwpaBkaWY0Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_isvQ0Y6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_isvQ046iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_UsJ70CgzEeeoAJG6t_MwCA"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_isvQ0o6iEemjwpaBkaWY0Q" x="320" y="60"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_is2lk46iEemjwpaBkaWY0Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_is2llI6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is2llo6iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_TK3aIC0TEee42cCIRX36lw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_is2llY6iEemjwpaBkaWY0Q" x="680" y="60"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_is63AI6iEemjwpaBkaWY0Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_is63AY6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is63A46iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
<eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_vI55wLAiEee43bo6S9i5Mw"/>
</styles>
<element xsi:nil="true"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BKFAMrAjEee43bo6S9i5Mw" x="680" y="240"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_is63Ao6iEemjwpaBkaWY0Q" x="680" y="240"/>
</children>
- <styles xmi:type="notation:StringValueStyle" xmi:id="_S-8MESgzEeeoAJG6t_MwCA" name="diagram_compatibility_version" stringValue="1.3.0"/>
+ <children xmi:type="notation:Shape" xmi:id="_is_vgI6iEemjwpaBkaWY0Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_is_vgY6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is_vg46iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_AmW7AI6aEemjwpaBkaWY0Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_is_vgo6iEemjwpaBkaWY0Q" x="1040" y="60"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_S-8MESgzEeeoAJG6t_MwCA" name="diagram_compatibility_version" stringValue="1.4.0"/>
<styles xmi:type="notation:DiagramStyle" xmi:id="_S-8MEigzEeeoAJG6t_MwCA"/>
<styles xmi:type="style:PapyrusDiagramStyle" xmi:id="_S-8MEygzEeeoAJG6t_MwCA" diagramKindId="org.eclipse.papyrus.uml.diagram.class">
<owner xmi:type="uml:Model" href="expressionModelTest.uml#_8TUvwCgyEeeoAJG6t_MwCA"/>
</styles>
<element xmi:type="uml:Model" href="expressionModelTest.uml#_8TUvwCgyEeeoAJG6t_MwCA"/>
- <edges xmi:type="notation:Connector" xmi:id="_3ooXtC0TEee42cCIRX36lw" type="StereotypeCommentLink" source="_TLBLIC0TEee42cCIRX36lw" target="_3ooXsC0TEee42cCIRX36lw">
- <styles xmi:type="notation:FontStyle" xmi:id="_3ooXtS0TEee42cCIRX36lw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_3ooXuS0TEee42cCIRX36lw" name="BASE_ELEMENT">
- <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_TK3aIC0TEee42cCIRX36lw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_isvQ1I6iEemjwpaBkaWY0Q" type="StereotypeCommentLink" source="_UsONQCgzEeeoAJG6t_MwCA" target="_isvQ0I6iEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_isvQ1Y6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_isvQ2Y6iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_UsJ70CgzEeeoAJG6t_MwCA"/>
</styles>
<element xsi:nil="true"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3ooXti0TEee42cCIRX36lw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3ooXty0TEee42cCIRX36lw"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3ooXuC0TEee42cCIRX36lw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_isvQ1o6iEemjwpaBkaWY0Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_isvQ146iEemjwpaBkaWY0Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_isvQ2I6iEemjwpaBkaWY0Q"/>
</edges>
- <edges xmi:type="notation:Connector" xmi:id="_A6oHgC0UEee42cCIRX36lw" type="StereotypeCommentLink" source="_UsONQCgzEeeoAJG6t_MwCA" target="_A6ngdC0UEee42cCIRX36lw">
- <styles xmi:type="notation:FontStyle" xmi:id="_A6oHgS0UEee42cCIRX36lw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_A6oHhS0UEee42cCIRX36lw" name="BASE_ELEMENT">
- <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_UsJ70CgzEeeoAJG6t_MwCA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_is2ll46iEemjwpaBkaWY0Q" type="StereotypeCommentLink" source="_TLBLIC0TEee42cCIRX36lw" target="_is2lk46iEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_is2lmI6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is2lnI6iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_TK3aIC0TEee42cCIRX36lw"/>
</styles>
<element xsi:nil="true"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_A6oHgi0UEee42cCIRX36lw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_A6oHgy0UEee42cCIRX36lw"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_A6oHhC0UEee42cCIRX36lw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_is2lmY6iEemjwpaBkaWY0Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is2lmo6iEemjwpaBkaWY0Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is2lm46iEemjwpaBkaWY0Q"/>
</edges>
- <edges xmi:type="notation:Connector" xmi:id="_BKGOULAjEee43bo6S9i5Mw" type="StereotypeCommentLink" source="_vI_ZULAiEee43bo6S9i5Mw" target="_BKFAMLAjEee43bo6S9i5Mw">
- <styles xmi:type="notation:FontStyle" xmi:id="_BKGOUbAjEee43bo6S9i5Mw"/>
- <styles xmi:type="notation:EObjectValueStyle" xmi:id="_BKGOVbAjEee43bo6S9i5Mw" name="BASE_ELEMENT">
+ <edges xmi:type="notation:Connector" xmi:id="_is63BI6iEemjwpaBkaWY0Q" type="StereotypeCommentLink" source="_vI_ZULAiEee43bo6S9i5Mw" target="_is63AI6iEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_is63BY6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is63CY6iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
<eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_vI55wLAiEee43bo6S9i5Mw"/>
</styles>
<element xsi:nil="true"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_BKGOUrAjEee43bo6S9i5Mw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_BKGOU7AjEee43bo6S9i5Mw"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_BKGOVLAjEee43bo6S9i5Mw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_is63Bo6iEemjwpaBkaWY0Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is63B46iEemjwpaBkaWY0Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is63CI6iEemjwpaBkaWY0Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_is_vhI6iEemjwpaBkaWY0Q" type="StereotypeCommentLink" source="_AmXiEI6aEemjwpaBkaWY0Q" target="_is_vgI6iEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_is_vhY6iEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_is_viY6iEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="expressionModelTest.uml#_AmW7AI6aEemjwpaBkaWY0Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_is_vho6iEemjwpaBkaWY0Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is_vh46iEemjwpaBkaWY0Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_is_viI6iEemjwpaBkaWY0Q"/>
</edges>
</notation:Diagram>
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.uml b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.uml
index c6ecb538bc4..a3bc9308f9f 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.uml
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionModelTest.uml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:RootElement="http:///schemas/RootElement/_dHIWYLAiEee43bo6S9i5Mw/5" xmlns:RootElement_1="papyrusExpressionProfile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/RootElement/_dHIWYLAiEee43bo6S9i5Mw/5 expressionProfileWithoutURI.profile.uml#_dHQ5QLAiEee43bo6S9i5Mw papyrusExpressionProfile expressionProfileWithURI.profile.uml#_CjQMcC8oEeexfKc2E3OwJQ">
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:RootElement="http:///schemas/RootElement/_dHIWYLAiEee43bo6S9i5Mw/5" xmlns:RootElement_1="papyrusExpressionProfile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/RootElement/_dHIWYLAiEee43bo6S9i5Mw/5 expressionProfileWithoutURI.profile.uml#_dHQ5QLAiEee43bo6S9i5Mw papyrusExpressionProfile expressionProfileWithURI.profile.uml#_IL4M0I6YEemjwpaBkaWY0Q">
<uml:Model xmi:id="_8TUvwCgyEeeoAJG6t_MwCA" name="RootElement">
<packagedElement xmi:type="uml:Class" xmi:id="_UsJ70CgzEeeoAJG6t_MwCA" name="StereotypedWithURIClass">
<ownedAttribute xmi:type="uml:Property" xmi:id="_V3npYCgzEeeoAJG6t_MwCA" name="StereotypedWithURIProperty" visibility="public"/>
@@ -7,6 +7,7 @@
<packagedElement xmi:type="uml:Class" xmi:id="_daTXsCgzEeeoAJG6t_MwCA" name="NoStereotypedClass"/>
<packagedElement xmi:type="uml:Class" xmi:id="_TK3aIC0TEee42cCIRX36lw" name="StereotypedWithoutURIClass"/>
<packagedElement xmi:type="uml:Class" xmi:id="_vI55wLAiEee43bo6S9i5Mw" name="StereotypedWithChildStereotype"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_AmW7AI6aEemjwpaBkaWY0Q" name="StereotypeAttributeEqualityClass"/>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_L-vxsC0TEee42cCIRX36lw">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9S7vgLAiEee43bo6S9i5Mw" source="PapyrusVersion">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9S7vgbAiEee43bo6S9i5Mw" key="Version" value="0.0.6"/>
@@ -21,15 +22,15 @@
<appliedProfile xmi:type="uml:Profile" href="expressionProfileWithoutURI.profile.uml#_ozrgMCgyEeeoAJG6t_MwCA"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_xKl9QC0TEee42cCIRX36lw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_EAHzEC8oEeexfKc2E3OwJQ" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EAHzES8oEeexfKc2E3OwJQ" key="Version" value="0.0.8"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EAHzEi8oEeexfKc2E3OwJQ" key="Comment" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EAHzEy8oEeexfKc2E3OwJQ" key="Copyright" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EAHzFC8oEeexfKc2E3OwJQ" key="Date" value="2017-05-02"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EAHzFS8oEeexfKc2E3OwJQ" key="Author" value=""/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_AHhp8I6aEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AHhp8Y6aEemjwpaBkaWY0Q" key="Version" value="0.0.12"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AHhp8o6aEemjwpaBkaWY0Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AHhp846aEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AHhp9I6aEemjwpaBkaWY0Q" key="Date" value="2019-06-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_AHhp9Y6aEemjwpaBkaWY0Q" key="Author" value=""/>
</eAnnotations>
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xKmkUC0TEee42cCIRX36lw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="expressionProfileWithURI.profile.uml#_CjQMcC8oEeexfKc2E3OwJQ"/>
+ <references xmi:type="ecore:EPackage" href="expressionProfileWithURI.profile.uml#_IL4M0I6YEemjwpaBkaWY0Q"/>
</eAnnotations>
<appliedProfile xmi:type="uml:Profile" href="expressionProfileWithURI.profile.uml#_ozrgMCgyEeeoAJG6t_MwCA"/>
</profileApplication>
@@ -38,4 +39,8 @@
<RootElement_1:ANiceStereotypeForElement xmi:id="_A6WasC0UEee42cCIRX36lw" base_Element="_UsJ70CgzEeeoAJG6t_MwCA"/>
<RootElement:ANiceStereotypeForProperty xmi:id="_0vazsC8oEeexfKc2E3OwJQ" base_Property="_V3npYCgzEeeoAJG6t_MwCA"/>
<RootElement:AChildNiceStereotypeForElement xmi:id="_BJua4LAjEee43bo6S9i5Mw" base_Element="_vI55wLAiEee43bo6S9i5Mw"/>
+ <RootElement_1:AttributeEqualityExpressionStereotype xmi:id="_GjC74I6aEemjwpaBkaWY0Q" base_Element="_AmW7AI6aEemjwpaBkaWY0Q" singleString="aNiceString" singleReal="3.14" singleInteger="-12" singleUnlimitedNatural="4" singleBoolean="true" singleEnum="value2">
+ <multiString>string1</multiString>
+ <multiString>string2</multiString>
+ </RootElement_1:AttributeEqualityExpressionStereotype>
</xmi:XMI>
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.notation b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.notation
index b5462753b19..251986e6293 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.notation
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.notation
@@ -1,13 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:gmfdiagrepresentation="http://www.eclipse.org/papyrus/infra/gmfdiag/representation" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/gmfdiag/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_o0MdkCgyEeeoAJG6t_MwCA" type="PapyrusUMLProfileDiagram" name="Profile Diagram" measurementUnit="Pixel">
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/gmfdiag/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_o0MdkCgyEeeoAJG6t_MwCA" type="PapyrusUMLProfileDiagram" name="Profile Diagram" measurementUnit="Pixel">
<children xmi:type="notation:Shape" xmi:id="_tPCRMCgyEeeoAJG6t_MwCA" type="Class_MetaclassShape">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tPI-4CgyEeeoAJG6t_MwCA" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tPI-4SgyEeeoAJG6t_MwCA" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tPI-4igyEeeoAJG6t_MwCA" key="StereotypeList" value="StandardProfile::Metaclass"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tPI-4ygyEeeoAJG6t_MwCA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tPI-5CgyEeeoAJG6t_MwCA" key="PropStereoDisplay" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tPI-5SgyEeeoAJG6t_MwCA" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
<children xmi:type="notation:DecorationNode" xmi:id="_tPHwwCgyEeeoAJG6t_MwCA" type="Class_MetaclassNameLabel"/>
<element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Element"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_tPIX0CgyEeeoAJG6t_MwCA" x="80" y="60" width="201" height="61"/>
@@ -55,13 +48,6 @@
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_yoxWASgyEeeoAJG6t_MwCA" x="440" y="280" width="201"/>
</children>
<children xmi:type="notation:Shape" xmi:id="_1_0KUCgyEeeoAJG6t_MwCA" type="Class_MetaclassShape">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_1_0xYCgyEeeoAJG6t_MwCA" source="Stereotype_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1_0xYSgyEeeoAJG6t_MwCA" key="StereotypeWithQualifiedNameList" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1_0xYigyEeeoAJG6t_MwCA" key="StereotypeList" value="StandardProfile::Metaclass"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1_0xYygyEeeoAJG6t_MwCA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1_0xZCgyEeeoAJG6t_MwCA" key="PropStereoDisplay" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_1_0xZSgyEeeoAJG6t_MwCA" key="StereotypePropertyLocation" value="Compartment"/>
- </eAnnotations>
<children xmi:type="notation:DecorationNode" xmi:id="_1_0KUigyEeeoAJG6t_MwCA" type="Class_MetaclassNameLabel"/>
<element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Property"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_1_0KUygyEeeoAJG6t_MwCA" x="440" y="60" width="201" height="61"/>
@@ -74,7 +60,91 @@
<element xsi:nil="true"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_1_-iZSgyEeeoAJG6t_MwCA" x="700" y="60"/>
</children>
- <styles xmi:type="notation:StringValueStyle" xmi:id="_o0MdkSgyEeeoAJG6t_MwCA" name="diagram_compatibility_version" stringValue="1.3.0"/>
+ <children xmi:type="notation:Shape" xmi:id="_UxxBMI6WEemjwpaBkaWY0Q" type="Stereotype_Shape">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ux15sI6WEemjwpaBkaWY0Q" type="Stereotype_NameLabel"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ux2gwI6WEemjwpaBkaWY0Q" type="Stereotype_AttributeCompartment">
+ <children xmi:type="notation:Shape" xmi:id="_89dpEI6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_gCz3oI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_89dpEY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_897jII6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_p6a18I6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_897jIY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8-RhYI6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_tKpQkI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8-RhYY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8-pU0I6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_tQxGsI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8-pU0Y6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8_HO4I6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_tVgcwI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8_HO4Y6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8_j60I6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_tZchkI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8_j60Y6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9AB04I6WEemjwpaBkaWY0Q" type="Property_ClassAttributeLabel">
+ <element xmi:type="uml:Property" href="expressionProfileWithURI.profile.uml#_0svJAI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9AB04Y6WEemjwpaBkaWY0Q"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ux2gwY6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ux2gwo6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ux2gw46WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ux2gxI6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ux2gxY6WEemjwpaBkaWY0Q" type="Stereotype_OperationCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ux2gxo6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ux2gx46WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ux2gyI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ux2gyY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="expressionProfileWithURI.profile.uml#_Uxf7cI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_UxxBMY6WEemjwpaBkaWY0Q" x="800" y="220" width="321" height="261"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bsR8QI6WEemjwpaBkaWY0Q" type="Class_MetaclassShape">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_bsW0wI6WEemjwpaBkaWY0Q" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bsW0wY6WEemjwpaBkaWY0Q" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bsW0wo6WEemjwpaBkaWY0Q" key="StereotypeList" value="StandardProfile::Metaclass"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bsW0w46WEemjwpaBkaWY0Q" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bsW0xI6WEemjwpaBkaWY0Q" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bsW0xY6WEemjwpaBkaWY0Q" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bsSjUI6WEemjwpaBkaWY0Q" type="Class_MetaclassNameLabel"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Element"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bsTKYI6WEemjwpaBkaWY0Q" x="800" y="80" width="261"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bsszAI6WEemjwpaBkaWY0Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bsszAY6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bsszA46WEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Element"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bsszAo6WEemjwpaBkaWY0Q" x="1060" y="80"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2bVY0I6WEemjwpaBkaWY0Q" type="Enumeration_Shape">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2bV_4I6WEemjwpaBkaWY0Q" type="Enumeration_NameLabel"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2bV_4Y6WEemjwpaBkaWY0Q" type="Enumeration_LiteralCompartment">
+ <children xmi:type="notation:Shape" xmi:id="_4HuCII6WEemjwpaBkaWY0Q" type="EnumerationLiteral_LiteralLabel">
+ <element xmi:type="uml:EnumerationLiteral" href="expressionProfileWithURI.profile.uml#_4HgmwI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_4HuCIY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_5a7WcI6WEemjwpaBkaWY0Q" type="EnumerationLiteral_LiteralLabel">
+ <element xmi:type="uml:EnumerationLiteral" href="expressionProfileWithURI.profile.uml#_5aobgI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5a7WcY6WEemjwpaBkaWY0Q"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2bV_4o6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2bV_446WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2bV_5I6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2bV_5Y6WEemjwpaBkaWY0Q"/>
+ </children>
+ <element xmi:type="uml:Enumeration" href="expressionProfileWithURI.profile.uml#_2bRucI6WEemjwpaBkaWY0Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2bVY0Y6WEemjwpaBkaWY0Q" x="1260" y="240"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_o0MdkSgyEeeoAJG6t_MwCA" name="diagram_compatibility_version" stringValue="1.4.0"/>
<styles xmi:type="notation:DiagramStyle" xmi:id="_o0MdkigyEeeoAJG6t_MwCA"/>
<styles xmi:type="style:PapyrusDiagramStyle" xmi:id="_o0MdkygyEeeoAJG6t_MwCA" diagramKindId="org.eclipse.papyrus.uml.diagram.profile">
<owner xmi:type="uml:Profile" href="expressionProfileWithURI.profile.uml#_ozrgMCgyEeeoAJG6t_MwCA"/>
@@ -114,4 +184,21 @@
<sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_4Gm3sCgyEeeoAJG6t_MwCA" id="(0.4975124378109453,0.0)"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_4Gm3sSgyEeeoAJG6t_MwCA" id="(0.4975124378109453,1.0)"/>
</edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bstaEI6WEemjwpaBkaWY0Q" type="StereotypeCommentLink" source="_bsR8QI6WEemjwpaBkaWY0Q" target="_bsszAI6WEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bstaEY6WEemjwpaBkaWY0Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bsuBIo6WEemjwpaBkaWY0Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Element"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bstaEo6WEemjwpaBkaWY0Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bsuBII6WEemjwpaBkaWY0Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bsuBIY6WEemjwpaBkaWY0Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_cWWM8I6WEemjwpaBkaWY0Q" type="Extension_Edge" source="_UxxBMI6WEemjwpaBkaWY0Q" target="_bsR8QI6WEemjwpaBkaWY0Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_cWWM8Y6WEemjwpaBkaWY0Q"/>
+ <element xmi:type="uml:Extension" href="expressionProfileWithURI.profile.uml#_cVyMQI6WEemjwpaBkaWY0Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_cWWM8o6WEemjwpaBkaWY0Q" points="[940, 300, -643984, -643984]$[940, 130, -643984, -643984]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_cXAUQI6WEemjwpaBkaWY0Q" id="(0.37383177570093457,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_cXAUQY6WEemjwpaBkaWY0Q" id="(0.45977011494252873,1.0)"/>
+ </edges>
</notation:Diagram>
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.uml b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.uml
index 2379067df1c..6236b6b4ad8 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.uml
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/resources/expressionProfileWithURI.profile.uml
@@ -1,6 +1,217 @@
<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_ozrgMCgyEeeoAJG6t_MwCA" name="RootElement" URI="papyrusExpressionProfile" metaclassReference="_tOxygCgyEeeoAJG6t_MwCA _1_y8MCgyEeeoAJG6t_MwCA">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_41FuUCgyEeeoAJG6t_MwCA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_UxiXsI6WEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UxiXsY6WEemjwpaBkaWY0Q" key="Version" value="0.0.0"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UxiXso6WEemjwpaBkaWY0Q" key="Comment" value="&lt;undefined>"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UxiXs46WEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UxiXtI6WEemjwpaBkaWY0Q" key="Date" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UxiXtY6WEemjwpaBkaWY0Q" key="Author" value="&lt;undefined>"/>
+ </eAnnotations>
+ <contents xmi:type="ecore:EPackage" xmi:id="_IL4M0I6YEemjwpaBkaWY0Q" name="RootElement" nsURI="papyrusExpressionProfile" nsPrefix="RootElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_IL4z446YEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_IL4z5I6YEemjwpaBkaWY0Q" key="Version" value="0.0.12"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_IL4z5Y6YEemjwpaBkaWY0Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_IL4z5o6YEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_IL4z546YEemjwpaBkaWY0Q" key="Date" value="2019-06-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_IL4z6I6YEemjwpaBkaWY0Q" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_IL4M0Y6YEemjwpaBkaWY0Q" name="ANiceStereotypeForElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_IL4M0o6YEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_t8ksoCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_IL4M046YEemjwpaBkaWY0Q" name="base_Element" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_IL4M1Y6YEemjwpaBkaWY0Q" name="ANiceStereotypeForProperty">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_IL4M1o6YEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yokhsCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_IL4M146YEemjwpaBkaWY0Q" name="base_Property" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_IL4M2Y6YEemjwpaBkaWY0Q" name="AttributeEqualityExpressionStereotype">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_IL4M2o6YEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_Uxf7cI6WEemjwpaBkaWY0Q"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_IL4M246YEemjwpaBkaWY0Q" name="base_Element" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M3Y6YEemjwpaBkaWY0Q" name="singleString" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M346YEemjwpaBkaWY0Q" name="multiString" ordered="false" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M4Y6YEemjwpaBkaWY0Q" name="singleReal" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Real"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M446YEemjwpaBkaWY0Q" name="singleInteger" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Integer"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M5Y6YEemjwpaBkaWY0Q" name="singleUnlimitedNatural" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//UnlimitedNatural"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M546YEemjwpaBkaWY0Q" name="singleBoolean" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_IL4M6Y6YEemjwpaBkaWY0Q" name="singleEnum" ordered="false" lowerBound="1" eType="_IL4M646YEemjwpaBkaWY0Q"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_IL4M646YEemjwpaBkaWY0Q" name="Enumeration">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_IL4M7I6YEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_2bRucI6WEemjwpaBkaWY0Q"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_IL4M7Y6YEemjwpaBkaWY0Q" name="value1"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_IL4M7o6YEemjwpaBkaWY0Q" name="value2" value="1"/>
+ </eClassifiers>
+ </contents>
+ <contents xmi:type="ecore:EPackage" xmi:id="_K828II6XEemjwpaBkaWY0Q" name="RootElement" nsURI="papyrusExpressionProfile" nsPrefix="RootElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_K828Qo6XEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_K828Q46XEemjwpaBkaWY0Q" key="Version" value="0.0.11"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_K828RI6XEemjwpaBkaWY0Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_K828RY6XEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_K828Ro6XEemjwpaBkaWY0Q" key="Date" value="2019-06-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_K828R46XEemjwpaBkaWY0Q" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_K828IY6XEemjwpaBkaWY0Q" name="ANiceStereotypeForElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_K828Io6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_t8ksoCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_K828I46XEemjwpaBkaWY0Q" name="base_Element" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_K828JY6XEemjwpaBkaWY0Q" name="ANiceStereotypeForProperty">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_K828Jo6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yokhsCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_K828J46XEemjwpaBkaWY0Q" name="base_Property" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_K828KY6XEemjwpaBkaWY0Q" name="AttributeEqualityExpressionStereotype">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_K828Ko6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_Uxf7cI6WEemjwpaBkaWY0Q"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_K828K46XEemjwpaBkaWY0Q" name="base_Element" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828LY6XEemjwpaBkaWY0Q" name="singleString" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828L46XEemjwpaBkaWY0Q" name="multiString" ordered="false" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828MY6XEemjwpaBkaWY0Q" name="singleReal" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Real"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828M46XEemjwpaBkaWY0Q" name="singleInteger" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Integer"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828NY6XEemjwpaBkaWY0Q" name="singleUnlimitedNatural" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//UnlimitedNatural"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828N46XEemjwpaBkaWY0Q" name="singleBoolean" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_K828OY6XEemjwpaBkaWY0Q" name="singleEnum" ordered="false" lowerBound="1" eType="_K828O46XEemjwpaBkaWY0Q"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_K828O46XEemjwpaBkaWY0Q" name="Enumeration">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_K828PI6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_2bRucI6WEemjwpaBkaWY0Q"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_K828PY6XEemjwpaBkaWY0Q" name="value1"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_K828Po6XEemjwpaBkaWY0Q" name="value2" value="1"/>
+ </eClassifiers>
+ </contents>
+ <contents xmi:type="ecore:EPackage" xmi:id="_Ij6HwI6XEemjwpaBkaWY0Q" name="RootElement" nsURI="papyrusExpressionProfile" nsPrefix="RootElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ij788o6XEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ij78846XEemjwpaBkaWY0Q" key="Version" value="0.0.10"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ij789I6XEemjwpaBkaWY0Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ij789Y6XEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ij789o6XEemjwpaBkaWY0Q" key="Date" value="2019-06-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ij78946XEemjwpaBkaWY0Q" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_Ij6HwY6XEemjwpaBkaWY0Q" name="ANiceStereotypeForElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ij6Hwo6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_t8ksoCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_Ij6Hw46XEemjwpaBkaWY0Q" name="base_Element" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_Ij6HxY6XEemjwpaBkaWY0Q" name="ANiceStereotypeForProperty">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ij6Hxo6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yokhsCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_Ij6Hx46XEemjwpaBkaWY0Q" name="base_Property" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_Ij6HyY6XEemjwpaBkaWY0Q" name="SingleStereotypeAttributeEqualityExpressionStereotype">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ij6Hyo6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_Uxf7cI6WEemjwpaBkaWY0Q"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_Ij6Hy46XEemjwpaBkaWY0Q" name="base_Element" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6HzY6XEemjwpaBkaWY0Q" name="singleString" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6Hz46XEemjwpaBkaWY0Q" name="multiString" ordered="false" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6H0Y6XEemjwpaBkaWY0Q" name="singleReal" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Real"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6H046XEemjwpaBkaWY0Q" name="singleInteger" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Integer"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6H1Y6XEemjwpaBkaWY0Q" name="singleUnlimitedNatural" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//UnlimitedNatural"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6H146XEemjwpaBkaWY0Q" name="singleBoolean" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_Ij6H2Y6XEemjwpaBkaWY0Q" name="singleEnum" ordered="false" lowerBound="1" eType="_Ij6H246XEemjwpaBkaWY0Q"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_Ij6H246XEemjwpaBkaWY0Q" name="Enumeration">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ij6H3I6XEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_2bRucI6WEemjwpaBkaWY0Q"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ij6H3Y6XEemjwpaBkaWY0Q" name="value1"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_Ij6H3o6XEemjwpaBkaWY0Q" name="value2" value="1"/>
+ </eClassifiers>
+ </contents>
+ <contents xmi:type="ecore:EPackage" xmi:id="_9l47AI6WEemjwpaBkaWY0Q" name="RootElement" nsURI="papyrusExpressionProfile" nsPrefix="RootElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9l6wMY6WEemjwpaBkaWY0Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9l6wMo6WEemjwpaBkaWY0Q" key="Version" value="0.0.9"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9l6wM46WEemjwpaBkaWY0Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9l6wNI6WEemjwpaBkaWY0Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9l6wNY6WEemjwpaBkaWY0Q" key="Date" value="2019-06-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9l6wNo6WEemjwpaBkaWY0Q" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_9l47AY6WEemjwpaBkaWY0Q" name="ANiceStereotypeForElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9l47Ao6WEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_t8ksoCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_9l47A46WEemjwpaBkaWY0Q" name="base_Element" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_9l47BY6WEemjwpaBkaWY0Q" name="ANiceStereotypeForProperty">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9l47Bo6WEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yokhsCgyEeeoAJG6t_MwCA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_9l47B46WEemjwpaBkaWY0Q" name="base_Property" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_9l47CY6WEemjwpaBkaWY0Q" name="SingleStereotypePropertyValueStereotype">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9l47Co6WEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_Uxf7cI6WEemjwpaBkaWY0Q"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_9l47C46WEemjwpaBkaWY0Q" name="base_Element" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47DY6WEemjwpaBkaWY0Q" name="singleString" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47D46WEemjwpaBkaWY0Q" name="multiString" ordered="false" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47EY6WEemjwpaBkaWY0Q" name="singleReal" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Real"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47E46WEemjwpaBkaWY0Q" name="singleInteger" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Integer"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47FY6WEemjwpaBkaWY0Q" name="singleUnlimitedNatural" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//UnlimitedNatural"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47F46WEemjwpaBkaWY0Q" name="singleBoolean" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_9l47GY6WEemjwpaBkaWY0Q" name="singleEnum" ordered="false" lowerBound="1" eType="_9l47G46WEemjwpaBkaWY0Q"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_9l47G46WEemjwpaBkaWY0Q" name="Enumeration">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9l47HI6WEemjwpaBkaWY0Q" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_2bRucI6WEemjwpaBkaWY0Q"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_9l47HY6WEemjwpaBkaWY0Q" name="value1"/>
+ <eLiterals xmi:type="ecore:EEnumLiteral" xmi:id="_9l47Ho6WEemjwpaBkaWY0Q" name="value2" value="1"/>
+ </eClassifiers>
+ </contents>
<contents xmi:type="ecore:EPackage" xmi:id="_CjQMcC8oEeexfKc2E3OwJQ" name="RootElement" nsURI="papyrusExpressionProfile" nsPrefix="RootElement">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_CjQzgS8oEeexfKc2E3OwJQ" source="PapyrusVersion">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_CjQzgi8oEeexfKc2E3OwJQ" key="Version" value="0.0.8"/>
@@ -192,4 +403,38 @@
<packagedElement xmi:type="uml:Extension" xmi:id="_4GMA8CgyEeeoAJG6t_MwCA" name="E_ANiceStereotypeForProperty_Property1" memberEnd="_4GMoACgyEeeoAJG6t_MwCA _4GNPECgyEeeoAJG6t_MwCA">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_4GMoACgyEeeoAJG6t_MwCA" name="extension_ANiceStereotypeForProperty" type="_yokhsCgyEeeoAJG6t_MwCA" aggregation="composite" association="_4GMA8CgyEeeoAJG6t_MwCA"/>
</packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_Uxf7cI6WEemjwpaBkaWY0Q" name="AttributeEqualityExpressionStereotype">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_cV2dsI6WEemjwpaBkaWY0Q" name="base_Element" association="_cVyMQI6WEemjwpaBkaWY0Q">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Element"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cV2dsY6WEemjwpaBkaWY0Q"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_gCz3oI6WEemjwpaBkaWY0Q" name="singleString">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_p6a18I6WEemjwpaBkaWY0Q" name="multiString">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_r8JdII6WEemjwpaBkaWY0Q"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_r8e0UI6WEemjwpaBkaWY0Q" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tKpQkI6WEemjwpaBkaWY0Q" name="singleReal">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Real"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tQxGsI6WEemjwpaBkaWY0Q" name="singleInteger">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tVgcwI6WEemjwpaBkaWY0Q" name="singleUnlimitedNatural">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#UnlimitedNatural"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tZchkI6WEemjwpaBkaWY0Q" name="singleBoolean">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_0svJAI6WEemjwpaBkaWY0Q" name="singleEnum" type="_2bRucI6WEemjwpaBkaWY0Q"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_cVyMQI6WEemjwpaBkaWY0Q" name="E_AttributeEqualityExpressionStereotype_Element1" memberEnd="_cV12oI6WEemjwpaBkaWY0Q _cV2dsI6WEemjwpaBkaWY0Q">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_cV12oI6WEemjwpaBkaWY0Q" name="extension_AttributeEqualityExpressionStereotype" type="_Uxf7cI6WEemjwpaBkaWY0Q" aggregation="composite" association="_cVyMQI6WEemjwpaBkaWY0Q"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_2bRucI6WEemjwpaBkaWY0Q" name="Enumeration">
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_4HgmwI6WEemjwpaBkaWY0Q" name="value1"/>
+ <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_5aobgI6WEemjwpaBkaWY0Q" name="value2"/>
+ </packagedElement>
</uml:Profile>
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/AllTests.java b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/AllTests.java
index 25cad10d067..86f641463f1 100755
--- a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/AllTests.java
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/AllTests.java
@@ -1,17 +1,17 @@
/*****************************************************************************
* Copyright (c) 2017 CEA LIST.
- *
- *
+ *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
+ *
*****************************************************************************/
package org.eclipse.papyrus.uml.expressions.tests;
@@ -25,7 +25,10 @@ import org.junit.runners.Suite.SuiteClasses;
IsStereotypedWithExpressionTests.class,
HasAppliedStereotypeExpressionTests.class,
IsKindOfExpressionTest.class,
- IsTypeOfExpressionTests.class
+ IsTypeOfExpressionTests.class,
+ IsKindOfStereotypeExpressionTests.class,
+ IsTypeOfStereotypeExpressionTests.class,
+ SingleStereotypeAttributeEqualityExpressionTests.class
})
/**
* @author
diff --git a/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/SingleStereotypeAttributeEqualityExpressionTests.java b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/SingleStereotypeAttributeEqualityExpressionTests.java
new file mode 100755
index 00000000000..41a93c6967c
--- /dev/null
+++ b/tests/junit/plugins/uml/expressions/org.eclipse.papyrus.uml.expressions.tests/src/org/eclipse/papyrus/uml/expressions/tests/SingleStereotypeAttributeEqualityExpressionTests.java
@@ -0,0 +1,172 @@
+/*****************************************************************************
+ * Copyright (c) 2019 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.expressions.tests;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EcoreFactory;
+import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture;
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.papyrus.uml.expressions.umlexpressions.SingleStereotypeAttributeEqualityExpression;
+import org.eclipse.papyrus.uml.expressions.umlexpressions.UMLExpressionsFactory;
+import org.eclipse.uml2.uml.Class;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.Test;
+
+
+/**
+ * Tests for {@link SingleStereotypeAttributeEqualityExpressionTests}
+ *
+ */
+@PluginResource("resources/expressionModelTest.di")
+public class SingleStereotypeAttributeEqualityExpressionTests {
+
+ private final EObject dummyEObject = EcoreFactory.eINSTANCE.createEClass();
+
+ private final String STEREOTYPED_CLASS_FOR_ATTRIBUTE_EQUALITY_NAME = "StereotypeAttributeEqualityClass"; //$NON-NLS-1$
+
+ private final String NOT_STEREOTYPED_CLASS_NAME = "NoStereotypedClass"; //$NON-NLS-1$
+
+ private final String ELEMENT_STEREOTYPE_QUALIFIED_NAME = "RootElement::AttributeEqualityExpressionStereotype"; //$NON-NLS-1$
+
+ private Class stereotypeAttributeEquality;
+
+ private Class notStereotypedClass;
+
+ private final String PROFILE_URI = "papyrusExpressionProfile"; //$NON-NLS-1$
+
+ @Rule
+ public final PapyrusEditorFixture fixture = new PapyrusEditorFixture();
+
+ @Before
+ public void init() {
+ stereotypeAttributeEquality = (Class) fixture.getModel().getMember(STEREOTYPED_CLASS_FOR_ATTRIBUTE_EQUALITY_NAME);
+ notStereotypedClass = (Class) fixture.getModel().getMember(NOT_STEREOTYPED_CLASS_NAME);
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test1() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ Assert.assertFalse(exp.evaluate(dummyEObject));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test2() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ Assert.assertFalse(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test3() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ Assert.assertFalse(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test4() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleString"); //$NON-NLS-1$
+ exp.setExpectedValue("dummyValue"); //$NON-NLS-1$
+ Assert.assertFalse(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test5() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleString"); //$NON-NLS-1$
+ exp.setExpectedValue("aNiceString"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test6() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleString"); //$NON-NLS-1$
+ exp.setExpectedValue("aNiceString"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test7() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleString"); //$NON-NLS-1$
+ exp.setExpectedValue("aNiceString"); //$NON-NLS-1$
+ exp.setProfileURI("dummyURI"); //$NON-NLS-1$
+ Assert.assertFalse(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test8() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("multiString"); //$NON-NLS-1$
+ exp.setExpectedValue("string1"); //$NON-NLS-1$
+ Assert.assertFalse(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test9() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleReal"); //$NON-NLS-1$
+ exp.setExpectedValue("3.14"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test10() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleInteger"); //$NON-NLS-1$
+ exp.setExpectedValue("-12"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test11() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleBoolean"); //$NON-NLS-1$
+ exp.setExpectedValue("true"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test12() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleUnlimitedNatural"); //$NON-NLS-1$
+ exp.setExpectedValue("4"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+ @Test
+ public void SingleStereotypeAttributeEqualityExpressionTests_Test13() {
+ final SingleStereotypeAttributeEqualityExpression exp = UMLExpressionsFactory.eINSTANCE.createSingleStereotypeAttributeEqualityExpression();
+ exp.setStereotypeQualifiedName(ELEMENT_STEREOTYPE_QUALIFIED_NAME);
+ exp.setPropertyName("singleEnum"); //$NON-NLS-1$
+ exp.setExpectedValue("value2"); //$NON-NLS-1$
+ Assert.assertTrue(exp.evaluate(stereotypeAttributeEquality));
+ }
+
+
+}

Back to the top