diff options
author | Nicolas FAUVERGUE | 2016-02-03 10:21:19 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-02-09 14:37:55 +0000 |
commit | 4edc19c798eaa3aba0b1f2d083e49cea9eb04d60 (patch) | |
tree | b8374844cf036034c7036cabbd53a30dce1d6e5f | |
parent | 59faad97bcdd14217d82d25897012b58bc49f003 (diff) | |
download | org.eclipse.papyrus-4edc19c798eaa3aba0b1f2d083e49cea9eb04d60.tar.gz org.eclipse.papyrus-4edc19c798eaa3aba0b1f2d083e49cea9eb04d60.tar.xz org.eclipse.papyrus-4edc19c798eaa3aba0b1f2d083e49cea9eb04d60.zip |
Bug 435417: [table] NPE when removing profile from model
https://bugs.eclipse.org/bugs/show_bug.cgi?id=435417
Add the JUnit tests.
Change-Id: I169ae6aad44dd803917bdc07cf0ec749b26bc692
Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@all4tec.net>
8 files changed, 416 insertions, 0 deletions
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.di b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.di new file mode 100644 index 00000000000..bf9abab340f --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.di @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.notation b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.notation new file mode 100644 index 00000000000..e61e10aa48e --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.notation @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<nattable:Table xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration" xmi:id="_gpvV8MpVEeWkvuKKJ18TvQ" name="GenericTable0" currentRowAxisProvider="_gpvV8spVEeWkvuKKJ18TvQ" currentColumnAxisProvider="_gpvV8cpVEeWkvuKKJ18TvQ"> + <context xmi:type="uml:Model" href="435417.uml#_XpzmgMpVEeWkvuKKJ18TvQ"/> + <owner xmi:type="uml:Model" href="435417.uml#_XpzmgMpVEeWkvuKKJ18TvQ"/> + <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/genericTable.configuration#_Uz8agHDuEeWh-MssWmCB_A"/> + <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#/"/> + <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_gpvV8cpVEeWkvuKKJ18TvQ" description="This axis provider provides available columns according to the rows of the table (features of the object displayed on the other axis)" name="UML Feature axis provider"> + <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Qv4PY8pXEeWkvuKKJ18TvQ" element="property_of_stereotype:/RootElement::Stereotype1::name"> + <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/> + </axis> + <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Qv4PYMpXEeWkvuKKJ18TvQ" element="property_of_stereotype:/RootElement::Stereotype1::isHuman"> + <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/> + </axis> + <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Qv4PYspXEeWkvuKKJ18TvQ" element="property_of_stereotype:/RootElement::Stereotype2::age"> + <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/> + </axis> + <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Qv4PYcpXEeWkvuKKJ18TvQ" element="property_of_stereotype:/RootElement::Stereotype2::weight"> + <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/> + </axis> + </columnAxisProvidersHistory> + <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_gpvV8spVEeWkvuKKJ18TvQ" description="This axis provider contains the object dropped by the user into the table" name="DroppedElementAxisProvider" disconnectSlave="true"> + <axis xmi:type="nattableaxis:EObjectAxis" xmi:id="_QvxhsMpXEeWkvuKKJ18TvQ"> + <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@rowHeaderAxisConfiguration/@axisManagers.0"/> + <element xmi:type="uml:Class" href="435417.uml#_hoTP8MpVEeWkvuKKJ18TvQ"/> + </axis> + </rowAxisProvidersHistory> +</nattable:Table> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.di b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.di new file mode 100644 index 00000000000..bf9abab340f --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.di @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.notation b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.notation new file mode 100644 index 00000000000..8c5401627a5 --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.notation @@ -0,0 +1,99 @@ +<?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:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_3tlhgMpUEeWkvuKKJ18TvQ" type="PapyrusUMLProfileDiagram" name="ProfileDiagram" measurementUnit="Pixel"> + <children xmi:type="notation:Shape" xmi:id="_9OovQMpUEeWkvuKKJ18TvQ" type="1026"> + <children xmi:type="notation:DecorationNode" xmi:id="_9OrykMpUEeWkvuKKJ18TvQ" type="1034"/> + <children xmi:type="notation:BasicCompartment" xmi:id="_9OrykcpUEeWkvuKKJ18TvQ" type="1071"> + <children xmi:type="notation:Shape" xmi:id="_-6OHUMpUEeWkvuKKJ18TvQ" type="3002"> + <element xmi:type="uml:Property" href="435417.profile.uml#_-5tJ8MpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_-6OHUcpUEeWkvuKKJ18TvQ"/> + </children> + <children xmi:type="notation:Shape" xmi:id="__r3msMpUEeWkvuKKJ18TvQ" type="3002"> + <element xmi:type="uml:Property" href="435417.profile.uml#__roWIMpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="__r3mscpUEeWkvuKKJ18TvQ"/> + </children> + <styles xmi:type="notation:TitleStyle" xmi:id="_9OrykspUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_9Oryk8pUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_9OrylMpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9OrylcpUEeWkvuKKJ18TvQ"/> + </children> + <children xmi:type="notation:BasicCompartment" xmi:id="_9OrylspUEeWkvuKKJ18TvQ" type="1019"> + <styles xmi:type="notation:TitleStyle" xmi:id="_9Oryl8pUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_9OrymMpUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_9OrymcpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9OrymspUEeWkvuKKJ18TvQ"/> + </children> + <element xmi:type="uml:Stereotype" href="435417.profile.uml#_83D8wMpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9OovQcpUEeWkvuKKJ18TvQ" x="271" y="179"/> + </children> + <children xmi:type="notation:Shape" xmi:id="_98eFoMpUEeWkvuKKJ18TvQ" type="1026"> + <children xmi:type="notation:DecorationNode" xmi:id="_98essMpUEeWkvuKKJ18TvQ" type="1034"/> + <children xmi:type="notation:BasicCompartment" xmi:id="_98esscpUEeWkvuKKJ18TvQ" type="1071"> + <children xmi:type="notation:Shape" xmi:id="_AKPkwMpVEeWkvuKKJ18TvQ" type="3002"> + <element xmi:type="uml:Property" href="435417.profile.uml#_AKBiUMpVEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_AKPkwcpVEeWkvuKKJ18TvQ"/> + </children> + <children xmi:type="notation:Shape" xmi:id="_BOM8IMpVEeWkvuKKJ18TvQ" type="3002"> + <element xmi:type="uml:Property" href="435417.profile.uml#_BOAu4MpVEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_BOM8IcpVEeWkvuKKJ18TvQ"/> + </children> + <styles xmi:type="notation:TitleStyle" xmi:id="_98essspUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_98ess8pUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_98estMpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_98estcpUEeWkvuKKJ18TvQ"/> + </children> + <children xmi:type="notation:BasicCompartment" xmi:id="_98estspUEeWkvuKKJ18TvQ" type="1019"> + <styles xmi:type="notation:TitleStyle" xmi:id="_98est8pUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_98esuMpUEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_98esucpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_98esuspUEeWkvuKKJ18TvQ"/> + </children> + <element xmi:type="uml:Stereotype" href="435417.profile.uml#_98abQMpUEeWkvuKKJ18TvQ"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_98eFocpUEeWkvuKKJ18TvQ" x="290" y="372"/> + </children> + <children xmi:type="notation:Shape" xmi:id="_PcgN4MpVEeWkvuKKJ18TvQ" type="3028"> + <children xmi:type="notation:DecorationNode" xmi:id="_Pcg08MpVEeWkvuKKJ18TvQ" type="5062"/> + <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Pcg08cpVEeWkvuKKJ18TvQ" x="522" y="223"/> + </children> + <children xmi:type="notation:Shape" xmi:id="_PdaM0MpVEeWkvuKKJ18TvQ" type="StereotypeComment"> + <styles xmi:type="notation:TitleStyle" xmi:id="_PdaM0cpVEeWkvuKKJ18TvQ" showTitle="true"/> + <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Pdaz4MpVEeWkvuKKJ18TvQ" name="BASE_ELEMENT"> + <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/> + </styles> + <element xsi:nil="true"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PdaM0spVEeWkvuKKJ18TvQ" x="903" y="140"/> + </children> + <styles xmi:type="notation:StringValueStyle" xmi:id="_3tlhgcpUEeWkvuKKJ18TvQ" name="diagram_compatibility_version" stringValue="1.1.0"/> + <styles xmi:type="notation:DiagramStyle" xmi:id="_3tlhgspUEeWkvuKKJ18TvQ"/> + <styles xmi:type="style:PapyrusViewStyle" xmi:id="_3tlhg8pUEeWkvuKKJ18TvQ"> + <owner xmi:type="uml:Profile" href="435417.profile.uml#_zwtcQMpUEeWkvuKKJ18TvQ"/> + </styles> + <element xmi:type="uml:Profile" href="435417.profile.uml#_zwtcQMpUEeWkvuKKJ18TvQ"/> + <edges xmi:type="notation:Connector" xmi:id="_Pdaz4cpVEeWkvuKKJ18TvQ" type="StereotypeCommentLink" source="_PcgN4MpVEeWkvuKKJ18TvQ" target="_PdaM0MpVEeWkvuKKJ18TvQ"> + <styles xmi:type="notation:FontStyle" xmi:id="_Pdaz4spVEeWkvuKKJ18TvQ"/> + <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Pdba8spVEeWkvuKKJ18TvQ" name="BASE_ELEMENT"> + <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/> + </styles> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Pdaz48pVEeWkvuKKJ18TvQ" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pdba8MpVEeWkvuKKJ18TvQ"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pdba8cpVEeWkvuKKJ18TvQ"/> + </edges> + <edges xmi:type="notation:Connector" xmi:id="_SHso0MpVEeWkvuKKJ18TvQ" type="1013" source="_98eFoMpUEeWkvuKKJ18TvQ" target="_PcgN4MpVEeWkvuKKJ18TvQ"> + <styles xmi:type="notation:FontStyle" xmi:id="_SHso0cpVEeWkvuKKJ18TvQ"/> + <element xmi:type="uml:Extension" href="435417.profile.uml#_SHRyEMpVEeWkvuKKJ18TvQ"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_SHso0spVEeWkvuKKJ18TvQ" points="[349, 179, -643984, -643984]$[351, 85, -643984, -643984]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SH9HgMpVEeWkvuKKJ18TvQ" id="(1.0,0.025210084033613446)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SH9HgcpVEeWkvuKKJ18TvQ" id="(0.0,0.58)"/> + </edges> + <edges xmi:type="notation:Connector" xmi:id="_JZAIcMpXEeWkvuKKJ18TvQ" type="4002" source="_98eFoMpUEeWkvuKKJ18TvQ" target="_9OovQMpUEeWkvuKKJ18TvQ"> + <children xmi:type="notation:DecorationNode" xmi:id="_JZAvgMpXEeWkvuKKJ18TvQ" type="6007"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_JZAvgcpXEeWkvuKKJ18TvQ" y="60"/> + </children> + <styles xmi:type="notation:FontStyle" xmi:id="_JZAIccpXEeWkvuKKJ18TvQ"/> + <element xmi:type="uml:Generalization" href="435417.profile.uml#_JYP6gMpXEeWkvuKKJ18TvQ"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_JZAIcspXEeWkvuKKJ18TvQ" points="[361, 372, -643984, -643984]$[362, 298, -643984, -643984]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Jamq8MpXEeWkvuKKJ18TvQ" id="(0.5725806451612904,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JanSAMpXEeWkvuKKJ18TvQ" id="(0.5796178343949044,1.0)"/> + </edges> +</notation:Diagram> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.uml b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.uml new file mode 100644 index 00000000000..48220960537 --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.profile.uml @@ -0,0 +1,123 @@ +<?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="_zwtcQMpUEeWkvuKKJ18TvQ" name="RootElement" metaclassReference="_Pce_wMpVEeWkvuKKJ18TvQ"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ceuHAMpVEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <contents xmi:type="ecore:EPackage" xmi:id="_KV2yQcpXEeWkvuKKJ18TvQ" name="RootElement" nsURI="http:///schemas/RootElement/_KV2yQMpXEeWkvuKKJ18TvQ/2" nsPrefix="RootElement"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KV3ZUMpXEeWkvuKKJ18TvQ" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KV3ZUcpXEeWkvuKKJ18TvQ" key="Version" value="0.0.3"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KV3ZUspXEeWkvuKKJ18TvQ" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KV3ZU8pXEeWkvuKKJ18TvQ" key="Copyright" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KV3ZVMpXEeWkvuKKJ18TvQ" key="Date" value="2016-02-03"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KV3ZVcpXEeWkvuKKJ18TvQ" key="Author" value=""/> + </eAnnotations> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_KV2yQspXEeWkvuKKJ18TvQ" name="Stereotype1"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KV2yQ8pXEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_83D8wMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_KV2yRMpXEeWkvuKKJ18TvQ" name="name" 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="_KV2yRspXEeWkvuKKJ18TvQ" name="isHuman" ordered="false" lowerBound="1"> + <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/> + </eStructuralFeatures> + </eClassifiers> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_KV2ySMpXEeWkvuKKJ18TvQ" name="Stereotype2" eSuperTypes="_KV2yQspXEeWkvuKKJ18TvQ"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KV2yScpXEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_98abQMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_KV2ySspXEeWkvuKKJ18TvQ" name="age" 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="_KV2yTMpXEeWkvuKKJ18TvQ" name="weight" 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:EReference" xmi:id="_KV2yTspXEeWkvuKKJ18TvQ" name="base_Class" ordered="false" lowerBound="1"> + <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </eStructuralFeatures> + </eClassifiers> + </contents> + <contents xmi:type="ecore:EPackage" xmi:id="_m4ewIcpVEeWkvuKKJ18TvQ" name="RootElement" nsURI="http:///schemas/RootElement/_m4ewIMpVEeWkvuKKJ18TvQ/1" nsPrefix="RootElement"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_m4f-QcpVEeWkvuKKJ18TvQ" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_m4f-QspVEeWkvuKKJ18TvQ" key="Version" value="0.0.2"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_m4f-Q8pVEeWkvuKKJ18TvQ" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_m4f-RMpVEeWkvuKKJ18TvQ" key="Copyright" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_m4f-RcpVEeWkvuKKJ18TvQ" key="Date" value="2016-02-03"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_m4f-RspVEeWkvuKKJ18TvQ" key="Author" value=""/> + </eAnnotations> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_m4ewIspVEeWkvuKKJ18TvQ" name="Stereotype1"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_m4ewI8pVEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_83D8wMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_m4ewJMpVEeWkvuKKJ18TvQ" name="name" 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="_m4ewJspVEeWkvuKKJ18TvQ" name="isHuman" ordered="false" lowerBound="1"> + <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/> + </eStructuralFeatures> + </eClassifiers> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_m4ewKMpVEeWkvuKKJ18TvQ" name="Stereotype2"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_m4ewKcpVEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_98abQMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_m4ewKspVEeWkvuKKJ18TvQ" name="age" 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="_m4ewLMpVEeWkvuKKJ18TvQ" name="weight" 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:EReference" xmi:id="_m4ewLspVEeWkvuKKJ18TvQ" name="base_Stereotype1" ordered="false" lowerBound="1" eType="_m4ewIspVEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_m4fXMcpVEeWkvuKKJ18TvQ" name="base_Class" ordered="false" lowerBound="1"> + <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </eStructuralFeatures> + </eClassifiers> + </contents> + <contents xmi:type="ecore:EPackage" xmi:id="_ceuuEMpVEeWkvuKKJ18TvQ" name="RootElement" nsURI="http:///schemas/RootElement/_ces44MpVEeWkvuKKJ18TvQ/0" nsPrefix="RootElement"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cewjQcpVEeWkvuKKJ18TvQ" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cewjQspVEeWkvuKKJ18TvQ" key="Version" value="0.0.1"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cewjQ8pVEeWkvuKKJ18TvQ" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cewjRMpVEeWkvuKKJ18TvQ" key="Copyright" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cewjRcpVEeWkvuKKJ18TvQ" key="Date" value="2016-02-03"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cewjRspVEeWkvuKKJ18TvQ" key="Author" value=""/> + </eAnnotations> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_ceuuEcpVEeWkvuKKJ18TvQ" name="Stereotype1"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ceuuEspVEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_83D8wMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_ceuuE8pVEeWkvuKKJ18TvQ" name="name" 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="_ceuuFcpVEeWkvuKKJ18TvQ" name="isHuman" 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:EReference" xmi:id="_ceuuF8pVEeWkvuKKJ18TvQ" name="base_Class" ordered="false" lowerBound="1"> + <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </eStructuralFeatures> + </eClassifiers> + <eClassifiers xmi:type="ecore:EClass" xmi:id="_ceuuGcpVEeWkvuKKJ18TvQ" name="Stereotype2"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ceuuGspVEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_98abQMpUEeWkvuKKJ18TvQ"/> + <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_ceuuG8pVEeWkvuKKJ18TvQ" name="age" 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="_ceuuHcpVEeWkvuKKJ18TvQ" name="weight" 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:EReference" xmi:id="_ceuuH8pVEeWkvuKKJ18TvQ" name="base_Stereotype1" ordered="false" lowerBound="1" eType="_ceuuEcpVEeWkvuKKJ18TvQ"/> + </eClassifiers> + </contents> + </eAnnotations> + <elementImport xmi:type="uml:ElementImport" xmi:id="_Pce_wMpVEeWkvuKKJ18TvQ" alias="Class"> + <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/> + </elementImport> + <packagedElement xmi:type="uml:Stereotype" xmi:id="_83D8wMpUEeWkvuKKJ18TvQ" name="Stereotype1"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_-5tJ8MpUEeWkvuKKJ18TvQ" name="name"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="__roWIMpUEeWkvuKKJ18TvQ" name="isHuman"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> + </ownedAttribute> + </packagedElement> + <packagedElement xmi:type="uml:Stereotype" xmi:id="_98abQMpUEeWkvuKKJ18TvQ" name="Stereotype2"> + <generalization xmi:type="uml:Generalization" xmi:id="_JYP6gMpXEeWkvuKKJ18TvQ" general="_83D8wMpUEeWkvuKKJ18TvQ"/> + <ownedAttribute xmi:type="uml:Property" xmi:id="_AKBiUMpVEeWkvuKKJ18TvQ" name="age"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_BOAu4MpVEeWkvuKKJ18TvQ" name="weight"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Real"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_mLlN4MpVEeWkvuKKJ18TvQ" name="base_Class" association="_SHRyEMpVEeWkvuKKJ18TvQ"> + <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/> + </ownedAttribute> + </packagedElement> + <packagedElement xmi:type="uml:Extension" xmi:id="_SHRyEMpVEeWkvuKKJ18TvQ" name="E_Stereotype2_Class1" memberEnd="_SHTAMMpVEeWkvuKKJ18TvQ _mLlN4MpVEeWkvuKKJ18TvQ"> + <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_SHTAMMpVEeWkvuKKJ18TvQ" name="extension_Stereotype2" type="_98abQMpUEeWkvuKKJ18TvQ" aggregation="composite" association="_SHRyEMpVEeWkvuKKJ18TvQ"/> + </packagedElement> +</uml:Profile> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.uml b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.uml new file mode 100644 index 00000000000..a21bf49e011 --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/resources/bugs/bug435417/435417.uml @@ -0,0 +1,20 @@ +<?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/_KV2yQMpXEeWkvuKKJ18TvQ/2" 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/_KV2yQMpXEeWkvuKKJ18TvQ/2 435417.profile.uml#_KV2yQcpXEeWkvuKKJ18TvQ"> + <uml:Model xmi:id="_XpzmgMpVEeWkvuKKJ18TvQ" name="RootElement"> + <packagedElement xmi:type="uml:Class" xmi:id="_hoTP8MpVEeWkvuKKJ18TvQ" name="Class1"/> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_FXezwMpXEeWkvuKKJ18TvQ"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Y5n9sMpXEeWkvuKKJ18TvQ" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Y5n9scpXEeWkvuKKJ18TvQ" key="Version" value="0.0.3"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Y5n9sspXEeWkvuKKJ18TvQ" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Y5n9s8pXEeWkvuKKJ18TvQ" key="Copyright" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Y5n9tMpXEeWkvuKKJ18TvQ" key="Date" value="2016-02-03"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Y5n9tcpXEeWkvuKKJ18TvQ" key="Author" value=""/> + </eAnnotations> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_FXgB4MpXEeWkvuKKJ18TvQ" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="435417.profile.uml#_KV2yQcpXEeWkvuKKJ18TvQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="435417.profile.uml#_zwtcQMpUEeWkvuKKJ18TvQ"/> + </profileApplication> + </uml:Model> + <RootElement:Stereotype2 xmi:id="_PUQl8MpXEeWkvuKKJ18TvQ" name="Vincent" isHuman="true" age="30" weight="68.5" base_Class="_hoTP8MpVEeWkvuKKJ18TvQ"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/StereotypeInheritDisplayTest.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/StereotypeInheritDisplayTest.java new file mode 100644 index 00000000000..ad01e9ae0d2 --- /dev/null +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/bugs/StereotypeInheritDisplayTest.java @@ -0,0 +1,139 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * 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: + * Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.nattable.generic.tests.bugs; + +import java.util.List; + +import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell; +import org.eclipse.papyrus.infra.core.sashwindows.di.service.IPageManager; +import org.eclipse.papyrus.infra.nattable.common.editor.NatTableEditor; +import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager; +import org.eclipse.papyrus.infra.nattable.model.nattable.Table; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.TableUtils; +import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.ui.IEditorPart; +import org.eclipse.uml2.uml.Model; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + +/** + * This allows to test the stereotype inherit properties in the table. + */ +@PluginResource("resources/bugs/bug435417/435417.di") +public class StereotypeInheritDisplayTest extends AbstractPapyrusTest { + + /** + * The table name. + */ + private static final String TABLE_NAME = "GenericTable0"; //$NON-NLS-1$ + + /** + * The papyrus fixture. + */ + @Rule + public final PapyrusEditorFixture fixture = new PapyrusEditorFixture(); + + /** + * Constructor. + */ + public StereotypeInheritDisplayTest() { + super(); + } + + /** + * This allow to initialize the tests. + */ + @Before + public void init() { + final Model model = (Model) fixture.getModel(); + Assert.assertNotNull("RootModel is null", model); //$NON-NLS-1$ + + // Get the table and open it + Table mainTable = TableUtils.getNotationFirstTable(fixture.getModelSet(), TABLE_NAME); + fixture.getPageManager().openPage(mainTable); + fixture.flushDisplayEvents(); + } + + /** + * This allows to test the stereotype inherited properties displayed in the table + * + * @throws Exception + * The caught exception. + */ + @Test + public void testStereotypePropeties() throws Exception { + // Open the table and get the manager + final IPageManager pageManager = fixture.getPageManager(); + final List<Object> pages = pageManager.allPages(); + pageManager.openPage(pages.get(0)); + final IEditorPart part = fixture.getEditor().getActiveEditor(); + Assert.assertTrue(part instanceof NatTableEditor); + final NatTableEditor editor = (NatTableEditor) part; + final INattableModelManager currentManager = (INattableModelManager) editor.getAdapter(INattableModelManager.class); + Assert.assertTrue(currentManager instanceof INattableModelManager); + + checkTableContent(currentManager); + } + + /** + * This allows to test the table cell editors and values. + * + * @param currentManager + * The current nattable model manager. + * @throws Exception + * The caught exception. + */ + protected void checkTableContent(final INattableModelManager currentManager) throws Exception { + // check the rows and columns number + Assert.assertEquals("The rows number is not the expected one", 1, currentManager.getRowCount()); //$NON-NLS-1$ + Assert.assertEquals("The columns number is not the expected one", 4, currentManager.getColumnCount()); //$NON-NLS-1$ + + // Check the cell editors + final ILayerCell cell0 = currentManager.getBodyLayerStack().getCellByPosition(0, 0); + Assert.assertNotEquals("The first cell must have config labels", null, cell0.getConfigLabels()); //$NON-NLS-1$ + Assert.assertNotEquals("The first cell must have at least one cell editor configuration", 0, cell0.getConfigLabels().getLabels().size()); //$NON-NLS-1$ + Assert.assertEquals("The first cell editor must be an UMLStereotypeSingleStringCellEditorConfiguration", "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleStringCellEditorConfiguration.MultiLineText0", //$NON-NLS-1$ //$NON-NLS-2$ + cell0.getConfigLabels().getLabels().get(0)); + + final ILayerCell cell1 = currentManager.getBodyLayerStack().getCellByPosition(1, 0); + Assert.assertNotEquals("The second cell must have config labels", null, cell1.getConfigLabels()); //$NON-NLS-1$ + Assert.assertNotEquals("The second cell must have at least one cell editor configuration", 0, cell1.getConfigLabels().getLabels().size()); //$NON-NLS-1$ + Assert.assertEquals("The second cell editor must be an UMLStereotypeSingleBooleanCellEditorConfiguration", "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleBooleanCellEditorConfiguration.CheckBox1", //$NON-NLS-1$ //$NON-NLS-2$ + cell1.getConfigLabels().getLabels().get(0)); + + final ILayerCell cell2 = currentManager.getBodyLayerStack().getCellByPosition(2, 0); + Assert.assertNotEquals("The third cell must have config labels", null, cell2.getConfigLabels()); //$NON-NLS-1$ + Assert.assertNotEquals("The third cell must have at least one cell editor configuration", 0, cell2.getConfigLabels().getLabels().size()); //$NON-NLS-1$ + Assert.assertEquals("The third cell editor must be an UMLStereotypeSingleIntegerCellEditorConfiguration", "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleIntegerCellEditorConfiguration.Text2", //$NON-NLS-1$ //$NON-NLS-2$ + cell2.getConfigLabels().getLabels().get(0)); + + final ILayerCell cell3 = currentManager.getBodyLayerStack().getCellByPosition(3, 0); + Assert.assertNotEquals("The fourth cell must have config labels", null, cell3.getConfigLabels()); //$NON-NLS-1$ + Assert.assertNotEquals("The fourth cell must have at least one cell editor configuration", 0, cell3.getConfigLabels().getLabels().size()); //$NON-NLS-1$ + Assert.assertEquals("The fourth cell editor must be an UMLStereotypeSingleRealCellEditorConfiguration", "org.eclipse.papyrus.uml.nattable.celleditor.configuration.UMLStereotypeSingleRealCellEditorConfiguration.Text3", //$NON-NLS-1$ //$NON-NLS-2$ + cell3.getConfigLabels().getLabels().get(0)); + + // Check the values + Assert.assertEquals("The first value is not the expected one", "Vincent", currentManager.getDataValue(0, 0)); //$NON-NLS-1$ //$NON-NLS-2$ + Assert.assertEquals("The second value is not the expected one", true, currentManager.getDataValue(1, 0)); //$NON-NLS-1$ + Assert.assertEquals("The third value is not the expected one", 30, currentManager.getDataValue(2, 0));//$NON-NLS-1$ + Assert.assertEquals("The fourth value is not the expected one", 68.5, currentManager.getDataValue(3, 0)); //$NON-NLS-1$ + + } + +} diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/tests/AllTests.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/tests/AllTests.java index 759eb4bd054..66ecf5dd0f3 100755 --- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/tests/AllTests.java +++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.tests/src/org/eclipse/papyrus/uml/nattable/generic/tests/tests/AllTests.java @@ -22,6 +22,7 @@ import org.eclipse.papyrus.uml.nattable.generic.tests.bugs.CellEditorsConfigurat import org.eclipse.papyrus.uml.nattable.generic.tests.bugs.InvertedAxisChangeIndexWithConfigurationTest; import org.eclipse.papyrus.uml.nattable.generic.tests.bugs.InvertedAxisChangeIndexWithoutConfigurationTest; import org.eclipse.papyrus.uml.nattable.generic.tests.bugs.OpenAndDeleteTest; +import org.eclipse.papyrus.uml.nattable.generic.tests.bugs.StereotypeInheritDisplayTest; import org.eclipse.papyrus.uml.nattable.generic.tests.importfile.ImportCellsAll_Test; import org.eclipse.papyrus.uml.nattable.generic.tests.importfile.ImportEmptyAddAll_Test; import org.eclipse.papyrus.uml.nattable.generic.tests.importfile.ImportEmptyReplaceAll_Test; @@ -83,6 +84,9 @@ import org.junit.runners.Suite.SuiteClasses; FilterNumericMatcherTest.class, FilterUMLEnumerationMatcherTest.class, CellEditorsConfigurationTest.class, + + // Stereotype inherited properties + StereotypeInheritDisplayTest.class, // Paste Overwrite tests PasteEmptyClipboard_Test.class, |