Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Daussy2014-06-26 11:04:18 -0400
committerMikael Barbero2014-07-07 05:17:00 -0400
commitb6e456fab066c65bb7e726578e4ee92ab5c4df65 (patch)
treebc10873ab200adf04b0c43308729eb543b4d5331 /plugins/org.eclipse.emf.compare.uml2.tests
parenta3ed4c4c7056ebcca9347b4ef3c3b35d40d4fc71 (diff)
downloadorg.eclipse.emf.compare-b6e456fab066c65bb7e726578e4ee92ab5c4df65.tar.gz
org.eclipse.emf.compare-b6e456fab066c65bb7e726578e4ee92ab5c4df65.tar.xz
org.eclipse.emf.compare-b6e456fab066c65bb7e726578e4ee92ab5c4df65.zip
Unit tests for DecoratorUMLProfileItemProviderAdapterFactory
Change-Id: I1135a5a577ea98b5f0feb8374e9cb5710b3b24bf Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
Diffstat (limited to 'plugins/org.eclipse.emf.compare.uml2.tests')
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF4
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/DynamicStereotypedElementItemProviderTest.java58
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StaticStereotypedElementItemProviderTest.java83
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StereotypedElementItemProviderTestUtil.java132
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/ModelInputData.java31
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/dynamicProfileModel.uml24
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/staticProfileModel.uml24
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/suite/AllTests.java5
8 files changed, 359 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
index 5e97dc8c1..d499ab301 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
@@ -24,7 +24,9 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.compare.uml2,
org.eclipse.emf.compare.tests;bundle-version="2.0.1",
org.eclipse.uml2.uml.edit;bundle-version="5.0.0";visibility:=reexport,
- org.eclipse.uml2.common.edit;visibility:=reexport
+ org.eclipse.uml2.common.edit;visibility:=reexport,
+ org.eclipse.emf.compare.uml2.edit,
+ org.eclipse.emf.compare.edit
Bundle-ActivationPolicy: lazy
Import-Package: com.google.common.base;version="[11.0.0,16.0.0)",
com.google.common.collect;version="[11.0.0,16.0.0)"
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/DynamicStereotypedElementItemProviderTest.java b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/DynamicStereotypedElementItemProviderTest.java
new file mode 100644
index 000000000..9bcb41dad
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/DynamicStereotypedElementItemProviderTest.java
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.tests.edit.provider;
+
+import java.io.IOException;
+import java.util.HashMap;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.compare.uml2.internal.provider.decorator.UMLProfileItemProviderAdapterFactoryDecorator;
+import org.eclipse.emf.compare.uml2.tests.AbstractDynamicProfileTest;
+import org.eclipse.emf.compare.uml2.tests.AbstractUMLInputData;
+import org.eclipse.emf.compare.uml2.tests.edit.provider.data.ModelInputData;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.junit.Test;
+
+/**
+ * Tests the {@link UMLProfileItemProviderAdapterFactoryDecorator} on a model with a dynamic profile.
+ *
+ * @author <a href="mailto:arthur.daussy@obeo.fr">Arthur Daussy</a>
+ */
+public class DynamicStereotypedElementItemProviderTest extends AbstractDynamicProfileTest {
+
+ private ModelInputData inputData = new ModelInputData();
+
+ @Override
+ protected AbstractUMLInputData getInput() {
+ return inputData;
+ }
+
+ @Test
+ public void testIconsAndLabelsDynamicProfile() throws IOException {
+ AdapterFactory stereotypedElementItemProviderDecorator = new UMLProfileItemProviderAdapterFactoryDecorator();
+
+ // Map<Ordered list of applied stereotyped, Expected icon>
+ HashMap<String, String> expectedStaticIcons = new HashMap<String, String>();
+ expectedStaticIcons.put("ACliche", "eclipse_luna.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ expectedStaticIcons.put("ACliche,ACliche2", "eclipse_luna.gif"); //$NON-NLS-1$//$NON-NLS-2$
+ expectedStaticIcons.put("ACliche2,ACliche", "eclipse_luna.gif"); //$NON-NLS-1$//$NON-NLS-2$
+ // ACliche2 and ACliche3 do not have any icon defined in the profile so the base element icon should
+ // be used instead
+ expectedStaticIcons.put("ACliche2", "Class.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ expectedStaticIcons.put("ACliche3", "Class.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ Resource resource = inputData.getDynamicProfileModelmodel();
+
+ StereotypedElementItemProviderTestUtil.checkIconAndLabel(stereotypedElementItemProviderDecorator,
+ expectedStaticIcons, resource);
+
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StaticStereotypedElementItemProviderTest.java b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StaticStereotypedElementItemProviderTest.java
new file mode 100644
index 000000000..7d0bb52f9
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StaticStereotypedElementItemProviderTest.java
@@ -0,0 +1,83 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.tests.edit.provider;
+
+import com.google.common.collect.Lists;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.regex.Pattern;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.compare.tests.postprocess.data.TestPostProcessor;
+import org.eclipse.emf.compare.uml2.internal.postprocessor.StereotypedElementChangePostProcessor;
+import org.eclipse.emf.compare.uml2.internal.provider.decorator.UMLProfileItemProviderAdapterFactoryDecorator;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.provider.UML2CompareTestProfileItemProviderAdapterFactory;
+import org.eclipse.emf.compare.uml2.tests.AbstractStaticProfileTest;
+import org.eclipse.emf.compare.uml2.tests.AbstractUMLInputData;
+import org.eclipse.emf.compare.uml2.tests.edit.provider.data.ModelInputData;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Tests the {@link UMLProfileItemProviderAdapterFactoryDecorator} on a model with a static profile.
+ *
+ * @author <a href="mailto:arthur.daussy@obeo.fr">Arthur Daussy</a>
+ */
+public class StaticStereotypedElementItemProviderTest extends AbstractStaticProfileTest {
+
+ private ModelInputData inputData = new ModelInputData();
+
+ @Override
+ protected AbstractUMLInputData getInput() {
+ return inputData;
+ }
+
+ @Override
+ protected void registerPostProcessors(
+ org.eclipse.emf.compare.postprocessor.IPostProcessor.Descriptor.Registry<String> postProcessorRegistry) {
+ super.registerPostProcessors(postProcessorRegistry);
+ postProcessorRegistry.put(StereotypedElementChangePostProcessor.class.getName(),
+ new TestPostProcessor.TestPostProcessorDescriptor(Pattern
+ .compile("http://www.eclipse.org/uml2/\\d\\.0\\.0/UML"), null, //$NON-NLS-1$
+ new StereotypedElementChangePostProcessor(), 25));
+ }
+
+ @Before
+ @Override
+ public void before() {
+ super.before();
+ }
+
+ @Test
+ public void testIconsAndLabelsStaticProfile() throws IOException {
+ AdapterFactory stereotypedElementItemProviderDecorator = new ComposedAdapterFactory(Lists
+ .<AdapterFactory> newArrayList(new UMLProfileItemProviderAdapterFactoryDecorator(),
+ new UML2CompareTestProfileItemProviderAdapterFactory()));
+
+ // Map<Ordered list of applied stereotyped, Expected icon>
+ HashMap<String, String> expectedStaticIcons = new HashMap<String, String>();
+ expectedStaticIcons.put("ACliche", "eclipse_luna.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ expectedStaticIcons.put("ACliche,ACliche2", "eclipse_luna.gif"); //$NON-NLS-1$//$NON-NLS-2$
+ expectedStaticIcons.put("ACliche2,ACliche", "eclipse_kepler.gif"); //$NON-NLS-1$//$NON-NLS-2$
+ expectedStaticIcons.put("ACliche2", "eclipse_kepler.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+ expectedStaticIcons.put("ACliche3", "ACliche3.gif"); //$NON-NLS-1$ //$NON-NLS-2$
+
+ Resource resource = inputData.getStaticProfileModel();
+
+ StereotypedElementItemProviderTestUtil.checkIconAndLabel(stereotypedElementItemProviderDecorator,
+ expectedStaticIcons, resource);
+
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StereotypedElementItemProviderTestUtil.java b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StereotypedElementItemProviderTestUtil.java
new file mode 100644
index 000000000..9823ce6cc
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/StereotypedElementItemProviderTestUtil.java
@@ -0,0 +1,132 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.tests.edit.provider;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import com.google.common.base.Function;
+import com.google.common.base.Joiner;
+import com.google.common.collect.Iterables;
+import com.google.common.collect.Lists;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.TreeIterator;
+import org.eclipse.emf.compare.uml2.internal.provider.decorator.ForwardingItemProviderAdapterDecorator;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.edit.provider.ComposedImage;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Stereotype;
+
+/**
+ * Util class for testing the {@link org.eclipse.emf.compare.uml2.internal.provider.decorator.UMLProfileItemProviderAdapterFactoryDecorator}.
+ *
+ * @author <a href="mailto:arthur.daussy@obeo.fr">Arthur Daussy</a>
+ */
+public class StereotypedElementItemProviderTestUtil {
+
+ /**
+ * Checks that every stereotyped element have a correct label and a correct icon.
+ *
+ * @param stereotypedElementItemProviderDecorator
+ * @param expectedStaticIcons
+ * @param resource
+ */
+ public static void checkIconAndLabel(AdapterFactory stereotypedElementItemProviderDecorator,
+ HashMap<String, String> expectedStaticIcons, Resource resource) {
+ TreeIterator<EObject> resourceContentIterator = resource.getAllContents();
+ while (resourceContentIterator.hasNext()) {
+ EObject eObject = resourceContentIterator.next();
+ IItemLabelProvider itemLabelProvider = (IItemLabelProvider)stereotypedElementItemProviderDecorator
+ .adapt(eObject, IItemLabelProvider.class);
+ if (eObject instanceof Element) {
+ if (!((Element)eObject).getAppliedStereotypes().isEmpty()) {
+ Element element = (Element)eObject;
+ // Checks label
+ EList<Stereotype> appliedStereotypes = element.getAppliedStereotypes();
+ final String expectedLabel = buildExpectedLabelOnStereotypedElement(appliedStereotypes,
+ element);
+ assertEquals(expectedLabel, itemLabelProvider.getText(eObject));
+ // Checks icon
+ List<String> actualIcons = getIconsLocation(itemLabelProvider.getImage(eObject));
+ assertEquals(1, actualIcons.size());
+ assertEquals(
+ "Wrong icon for stereotypes :" + generateExpectedIconKey(appliedStereotypes), //$NON-NLS-1$
+ getExpectedIcon(appliedStereotypes, expectedStaticIcons), actualIcons
+ .get(0));
+ } else {
+ assertNotNull(itemLabelProvider);
+ assertTrue("Wrong item provider for object " + itemLabelProvider.getText(eObject), //$NON-NLS-1$
+ itemLabelProvider instanceof ForwardingItemProviderAdapterDecorator);
+ }
+ }
+ }
+ }
+
+ private static String getExpectedIcon(List<Stereotype> stereotypes, Map<String, String> expectedIconsMap) {
+ return expectedIconsMap.get(generateExpectedIconKey(stereotypes));
+ }
+
+ /**
+ * Gets the key used to retrieve the expected icon.
+ *
+ * @param stereotypes
+ * @return
+ */
+ private static String generateExpectedIconKey(List<Stereotype> stereotypes) {
+ return Joiner.on(',').join(Iterables.transform(stereotypes, TO_NAME_FUNCTION));
+ }
+
+ private static List<String> getIconsLocation(Object icon) {
+ final List<String> result = Lists.newArrayList();
+ if (icon instanceof ComposedImage) {
+ for (Object image : ((ComposedImage)icon).getImages()) {
+ result.addAll(getIconsLocation(image));
+ }
+ } else if (icon instanceof URL) {
+
+ String file = ((URL)icon).getFile();
+ // Only stores the file name to avoid problems between relative and absolute path. The name of the
+ // file is discriminant enough for our test.
+ String[] segment = file.split("/"); //$NON-NLS-1$
+ result.add(segment[segment.length - 1]);
+ }
+ return result;
+ }
+
+ private static final Function<Stereotype, String> TO_NAME_FUNCTION = new Function<Stereotype, String>() {
+
+ public String apply(Stereotype input) {
+ return input.getName();
+ }
+ };
+
+ private static String buildExpectedLabelOnStereotypedElement(List<Stereotype> stereotypes, Element elem) {
+ StringBuilder labelBuilder = new StringBuilder();
+ String stereotypesLabel = Joiner.on(',').join(Iterables.transform(stereotypes, TO_NAME_FUNCTION));
+ labelBuilder.append('<').append(stereotypesLabel).append('>');
+ if (elem instanceof NamedElement) {
+ labelBuilder.append(' ').append(((NamedElement)elem).getName());
+ }
+ return labelBuilder.toString();
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/ModelInputData.java b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/ModelInputData.java
new file mode 100644
index 000000000..818735469
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/ModelInputData.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.tests.edit.provider.data;
+
+import java.io.IOException;
+
+import org.eclipse.emf.compare.uml2.tests.AbstractUMLInputData;
+import org.eclipse.emf.ecore.resource.Resource;
+
+/**
+ * @author <a href="mailto:arthur.daussy@obeo.fr">Arthur Daussy</a>
+ */
+public class ModelInputData extends AbstractUMLInputData {
+
+ public Resource getStaticProfileModel() throws IOException {
+ return loadFromClassLoader("staticProfileModel.uml"); //$NON-NLS-1$
+ }
+
+ public Resource getDynamicProfileModelmodel() throws IOException {
+ return loadFromClassLoader("dynamicProfileModel.uml"); //$NON-NLS-1$
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/dynamicProfileModel.uml b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/dynamicProfileModel.uml
new file mode 100644
index 000000000..a8109b71c
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/dynamicProfileModel.uml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:testProfile="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile pathmap://UML_COMPARE_TESTS_PROFILE/uml2.compare.testprofile.profile.uml#_59tLoPU0EeOznPU7N6uHbQ">
+ <uml:Model xmi:id="_haH48P0HEeOFKa_oRgmYkg" name="model">
+ <packagedElement xmi:type="uml:Class" xmi:id="_5PjdAP0HEeOFKa_oRgmYkg" name="NormalClass"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUP0IEeOFKa_oRgmYkg" name="NewAcliche"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUf0IEeOFKa_oRgmYkg" name="NewAcliche2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUv0IEeOFKa_oRgmYkg" name="NewAcliche3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ieOWEP0OEeOFKa_oRgmYkg" name="MultipleStereotypeElement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_uJY8sP0OEeOFKa_oRgmYkg" name="MultipleStereotypeElement1"/>
+ <profileApplication xmi:id="_Qw-f8P0IEeOFKa_oRgmYkg">
+ <eAnnotations xmi:id="_QxF0sP0IEeOFKa_oRgmYkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://UML_COMPARE_TESTS_PROFILE/uml2.compare.testprofile.profile.uml#_59tLoPU0EeOznPU7N6uHbQ"/>
+ </eAnnotations>
+ <appliedProfile href="pathmap://UML_COMPARE_TESTS_PROFILE/uml2.compare.testprofile.profile.uml#_hZFTgIwkEeC_FYHMbTTxXw"/>
+ </profileApplication>
+ </uml:Model>
+ <testProfile:ACliche xmi:id="_0tdVYP0IEeOFKa_oRgmYkg" base_Class="_0tcuUP0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_0td8cP0IEeOFKa_oRgmYkg" base_Class="_0tcuUf0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche3 xmi:id="_0td8cf0IEeOFKa_oRgmYkg" base_Class="_0tcuUv0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche xmi:id="_ieOWEf0OEeOFKa_oRgmYkg" base_Class="_ieOWEP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_nVp_EP0OEeOFKa_oRgmYkg" base_Class="_ieOWEP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_uJY8sf0OEeOFKa_oRgmYkg" base_Class="_uJY8sP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche xmi:id="_xlFngP0OEeOFKa_oRgmYkg" base_Class="_uJY8sP0OEeOFKa_oRgmYkg"/>
+</xmi:XMI>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/staticProfileModel.uml b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/staticProfileModel.uml
new file mode 100644
index 000000000..6e0790546
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/edit/provider/data/staticProfileModel.uml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:testProfile="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <uml:Model xmi:id="_haH48P0HEeOFKa_oRgmYkg" name="model">
+ <packagedElement xmi:type="uml:Class" xmi:id="_5PjdAP0HEeOFKa_oRgmYkg" name="NormalClass"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUP0IEeOFKa_oRgmYkg" name="NewAcliche"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUf0IEeOFKa_oRgmYkg" name="NewAcliche2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_0tcuUv0IEeOFKa_oRgmYkg" name="NewAcliche3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ieOWEP0OEeOFKa_oRgmYkg" name="MultipleStereotypeElement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_uJY8sP0OEeOFKa_oRgmYkg" name="MultipleStereotypeElement1"/>
+ <profileApplication xmi:id="_Qw-f8P0IEeOFKa_oRgmYkg">
+ <eAnnotations xmi:id="_QxF0sP0IEeOFKa_oRgmYkg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile#/"/>
+ </eAnnotations>
+ <appliedProfile href="platform:/plugin/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml#_hZFTgIwkEeC_FYHMbTTxXw"/>
+ </profileApplication>
+ </uml:Model>
+ <testProfile:ACliche xmi:id="_0tdVYP0IEeOFKa_oRgmYkg" base_Class="_0tcuUP0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_0td8cP0IEeOFKa_oRgmYkg" base_Class="_0tcuUf0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche3 xmi:id="_0td8cf0IEeOFKa_oRgmYkg" base_Class="_0tcuUv0IEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche xmi:id="_ieOWEf0OEeOFKa_oRgmYkg" base_Class="_ieOWEP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_nVp_EP0OEeOFKa_oRgmYkg" base_Class="_ieOWEP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche2 xmi:id="_uJY8sf0OEeOFKa_oRgmYkg" base_Class="_uJY8sP0OEeOFKa_oRgmYkg"/>
+ <testProfile:ACliche xmi:id="_xlFngP0OEeOFKa_oRgmYkg" base_Class="_uJY8sP0OEeOFKa_oRgmYkg"/>
+</xmi:XMI>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/suite/AllTests.java b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/suite/AllTests.java
index b553f1cdc..1cda2f7fe 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/suite/AllTests.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/src/org/eclipse/emf/compare/uml2/tests/suite/AllTests.java
@@ -26,6 +26,8 @@ import org.eclipse.emf.compare.uml2.tests.dependency.AddSubstitutionTest;
import org.eclipse.emf.compare.uml2.tests.dependency.AddUsageTest;
import org.eclipse.emf.compare.uml2.tests.dependency.ChangeDependencyTest;
import org.eclipse.emf.compare.uml2.tests.dependency.ChangeUsageTest;
+import org.eclipse.emf.compare.uml2.tests.edit.provider.DynamicStereotypedElementItemProviderTest;
+import org.eclipse.emf.compare.uml2.tests.edit.provider.StaticStereotypedElementItemProviderTest;
import org.eclipse.emf.compare.uml2.tests.executionSpecification.AddActionExecutionSpecificationTest;
import org.eclipse.emf.compare.uml2.tests.executionSpecification.AddBehaviorExecutionSpecificationTest;
import org.eclipse.emf.compare.uml2.tests.extend.AddExtendTest;
@@ -62,7 +64,8 @@ import org.junit.runners.Suite.SuiteClasses;
AddIncludeTest.class, AddTimeConstraintTest.class, StaticProfileTest.class, DynamicProfileTest.class,
StaticStereotypeTest.class, StaticStereotypedElementChangeTests.class, DynamicStereotypeTest.class,
DynamicStereotypedElementChangeTests.class, ImplicationsAssociationTest.class,
- ImplicationsTransitionTest.class, ImplicationsInterfaceRealizationTest.class })
+ ImplicationsTransitionTest.class, ImplicationsInterfaceRealizationTest.class,
+ StaticStereotypedElementItemProviderTest.class, DynamicStereotypedElementItemProviderTest.class })
public class AllTests {
/**

Back to the top