summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 10:12:07 (EDT)
committerLaurent Wouters2014-04-04 10:12:07 (EDT)
commit556319573977fa4219f753efb97a8ac87c4e5151 (patch)
treeaa248e65fceb66ce9bc38070a7046c309b399e6a
parent8ecd7d0e5e2c2eb320e21b59a5a4405615c39fc4 (diff)
downloadorg.eclipse.papyrus-556319573977fa4219f753efb97a8ac87c4e5151.zip
org.eclipse.papyrus-556319573977fa4219f753efb97a8ac87c4e5151.tar.gz
org.eclipse.papyrus-556319573977fa4219f753efb97a8ac87c4e5151.tar.bz2
[clean] Retiring org.eclipse.papyrus.properties.runtime.testslast/org.eclipse.papyrus.properties.runtime.tests
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/.classpath7
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/.project34
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/META-INF/MANIFEST.MF15
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/build.properties4
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/launch/PropertyEditorControllerServiceTestCase.launch41
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/plugin.properties12
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/Activator.java52
-rw-r--r--deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/controller/PropertyEditorControllerServiceTestCase.java86
10 files changed, 0 insertions, 287 deletions
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.classpath b/deprecated/org.eclipse.papyrus.properties.runtime.tests/.classpath
deleted file mode 100644
index 046bda9..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="test"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.project b/deprecated/org.eclipse.papyrus.properties.runtime.tests/.project
deleted file mode 100644
index 8af638f..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.properties.runtime.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.settings/org.eclipse.jdt.core.prefs b/deprecated/org.eclipse.papyrus.properties.runtime.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b6d01f2..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Wed Mar 24 01:00:38 CET 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.properties.runtime.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index d225729..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.papyrus.properties.runtime.tests;singleton:=true
-Bundle-Version: 0.9.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.properties.runtime.tests.Activator
-Bundle-Vendor: %providerName
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.junit;bundle-version="4.8.1",
- org.eclipse.papyrus.views.properties.runtime;bundle-version="0.9.0",
- org.eclipse.gmf.runtime.common.ui.services;bundle-version="1.3.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Export-Package: org.eclipse.papyrus.properties.runtime.tests
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/about.html b/deprecated/org.eclipse.papyrus.properties.runtime.tests/about.html
deleted file mode 100644
index 82d49bf..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/build.properties b/deprecated/org.eclipse.papyrus.properties.runtime.tests/build.properties
deleted file mode 100644
index dc49f37..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/build.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-source.. = test/
-output.. = bin/
-bin.includes = META-INF/,\
- .
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/launch/PropertyEditorControllerServiceTestCase.launch b/deprecated/org.eclipse.papyrus.properties.runtime.tests/launch/PropertyEditorControllerServiceTestCase.launch
deleted file mode 100644
index 21f7696..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/launch/PropertyEditorControllerServiceTestCase.launch
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<stringAttribute key="deselected_workspace_plugins" value="org.eclipse.papyrus.outline,org.eclipse.papyrus.diagram.statemachine,org.eclipse.papyrus.diagram.composite,org.eclipse.papyrus.properties.uml,org.eclipse.emf.eef.runtime,org.eclipse.papyrus.ui.toolbox,org.eclipse.papyrus.def,org.eclipse.papyrus.properties.tooling,org.eclipse.papyrus.umlutils,org.eclipse.papyrus.core,org.eclipse.papyrus.layouttool.algorithms.horizontalTreeAlgorithm,org.eclipse.papyrus.gmfgenextension,org.eclipse.papyrus.profile,org.eclipse.papyrus.tabbedproperties.core,org.eclipse.papyrus.layouttool.subeditor.gmf,org.eclipse.papyrus.parsers,org.eclipse.papyrus.resource,org.eclipse.papyrus.extensionpoints.editors,org.eclipse.papyrus.controlmode,org.eclipse.papyrus.diagram.clazz,org.eclipse.papyrus.properties.runtime,org.eclipse.papyrus.diagram.profile,org.eclipse.papyrus.templaterepository,org.eclipse.papyrus.diagram.common.tests,org.eclipse.papyrus.preferences,org.eclipse.papyrus.tabbedproperties.appearance,org.eclipse.papyrus.sasheditor.di,org.eclipse.papyrus.diagram.sequence,org.eclipse.papyrus.layouttool.algorithms.horizontalAlgorithm,org.eclipse.papyrus.diagram.common,org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm,org.eclipse.papyrus.core.adaptor.gmf,org.eclipse.papyrus.layouttool.algorithms.horizontalSymmetryAlgorithm,org.eclipse.papyrus.navigator,org.eclipse.papyrus.layouttool.algorithms.treeAlgorithm,org.eclipse.papyrus.sysml,org.eclipse.papyrus.extensionpoints.uml2,org.eclipse.papyrus.resource.edit,org.eclipse.papyrus.layouttool,org.eclipse.papyrus.uml.standard.edit,org.eclipse.papyrus.resource.migration,org.eclipse.papyrus.diagramprofile,org.eclipse.papyrus.editor,org.eclipse.papyrus.uml.standard,org.eclipse.papyrus.diagram.usecase,org.eclipse.papyrus.core.adaptor.emf,org.eclipse.uml2.common.edit,org.eclipse.papyrus.layouttool.algorithms.verticalSymmetryAlgorithm,org.eclipse.papyrus.tabbedproperties.uml,org.eclipse.papyrus.sysml.edit,org.eclipse.papyrus.layouttool.algorithms.verticalAlgorithm,org.eclipse.papyrus.sysml.diagram.internalblock,org.eclipse.papyrus.sysml.diagram.parametric,org.eclipse.papyrus.properties.runtime.tests,org.eclipse.papyrus.perspective,org.eclipse.papyrus.diagram.activity,org.eclipse.papyrus.codegen,org.eclipse.papyrus.log,org.eclipse.papyrus.layouttool.algorithms.springAlgorithm,org.eclipse.papyrus.wizards,org.eclipse.papyrus.layouttool.algorithms.gridAlgorithm,org.eclipse.papyrus.sasheditor"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.properties.runtime.tests"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="4"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=org.eclipse.papyrus.properties.runtime.tests"/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.properties.runtime.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<stringAttribute key="selected_target_plugins" value="org.eclipse.ui.views@default:default,org.eclipse.ecf@default:default,org.eclipse.emf.edit@default:default,org.eclipse.gmf.runtime.common.ui.action@default:default,org.eclipse.osgi@-1:true,org.apache.jasper@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.gmf.runtime.emf.ui@default:default,org.eclipse.osgi.services@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.common@default:default,org.eclipse.gmf.runtime.common.ui.services@default:default,org.eclipse.core.filesystem.win32.x86@default:false,org.eclipse.ecf.provider.filetransfer@default:default,org.junit*4.8.1.v4_8_1_v20100114-1600@default:default,org.eclipse.equinox.security@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.gmf.runtime.common.core@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.ui.workbench@default:default,org.eclipse.gmf.runtime.common.ui.services.action@default:default,org.hamcrest.core@default:default,org.eclipse.ui.intro@default:default,org.eclipse.gmf.runtime.diagram.core@default:default,org.eclipse.core.databinding@default:default,org.eclipse.gmf.runtime.draw2d.ui@default:default,org.eclipse.platform@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.gmf.runtime.emf.type.core@default:default,org.eclipse.ui.forms@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.gmf.runtime.emf.core@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.uml2.uml@default:default,org.eclipse.emf.mapping.ecore2xml@default:default,org.eclipse.gmf.runtime.diagram.ui@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.emf.validation@default:default,org.eclipse.core.resources@default:default,org.eclipse.gmf.runtime.emf.commands.core@default:default,com.ibm.icu@default:default,org.apache.commons.el@default:default,org.eclipse.gmf.runtime.notation@default:default,org.eclipse.ui.ide@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.emf.transaction@default:default,org.eclipse.jface.text@default:default,org.eclipse.gef@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.resources.win32.x86@default:false,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.help.ui@default:default,org.eclipse.equinox.common@2:true,org.eclipse.core.filesystem@default:default,org.eclipse.uml2.uml.resources@default:default,org.eclipse.help@default:default,org.apache.commons.logging@default:default,org.eclipse.text@default:default,javax.servlet.jsp@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.core.commands@default:default,org.apache.lucene@default:default,org.eclipse.core.expressions@default:default,org.eclipse.equinox.security.win32.x86@default:false,org.eclipse.gmf.runtime.draw2d.ui.render@default:default,org.eclipse.jface@default:default,org.eclipse.emf.ecore@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.compare.core@default:default,org.mortbay.jetty.util@default:default,org.eclipse.ecf.filetransfer@default:default,org.apache.ant@default:default,org.mortbay.jetty.server@default:default,org.eclipse.core.net@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.gmf.runtime.gef.ui@default:default,org.eclipse.ui@default:default,javax.servlet@default:default,org.eclipse.core.net.win32.x86@default:false,org.eclipse.core.databinding.property@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.help.base@default:default,org.eclipse.team.core@default:default,org.eclipse.emf.workspace@default:default,org.eclipse.gmf.runtime.emf.clipboard.core@default:default,org.eclipse.draw2d@default:default,org.apache.lucene.analysis@default:default,org.eclipse.equinox.app@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.gmf.runtime.common.ui@default:default,org.eclipse.emf.ecore.change@default:default,org.eclipse.ui.console@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.ui.win32@default:false,org.eclipse.emf.ecore.xmi@default:default,org.eclipse.swt@default:default,org.eclipse.core.jobs@default:default,org.eclipse.uml2.common@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.core.variables@default:default,org.eclipse.swt.win32.win32.x86@default:false,org.eclipse.ant.core@default:default"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="false"/>
-</launchConfiguration>
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/plugin.properties b/deprecated/org.eclipse.papyrus.properties.runtime.tests/plugin.properties
deleted file mode 100644
index 7930ac5..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#################################################################################
-# Copyright (c) 2008 CEA LIST.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Remi Schnekenburger(CEA LIST) remi.schnekenburger@cea.fr - initial API and implementation
-##################################################################################
-pluginName=Papyrus Properties Runtime Test(Incubation)
-providerName=Eclipse Modeling Project
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/Activator.java b/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/Activator.java
deleted file mode 100644
index 6962cf1..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/Activator.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.eclipse.papyrus.properties.runtime.tests;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.properties.runtime.tests"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/controller/PropertyEditorControllerServiceTestCase.java b/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/controller/PropertyEditorControllerServiceTestCase.java
deleted file mode 100644
index 34e0022..0000000
--- a/deprecated/org.eclipse.papyrus.properties.runtime.tests/test/org/eclipse/papyrus/properties/runtime/tests/controller/PropertyEditorControllerServiceTestCase.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.runtime.tests.controller;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-
-import org.eclipse.gmf.runtime.common.core.service.Service;
-import org.eclipse.papyrus.views.properties.runtime.controller.PropertyEditorControllerService;
-import org.junit.Test;
-
-
-/**
- * Test case for the property editor controller service
- */
-public class PropertyEditorControllerServiceTestCase extends PropertyEditorControllerService {
-
- /**
- * Test method for {@link PropertyEditorControllerService}.
- */
- @Test
- public void testServiceCreation() {
- PropertyEditorControllerService instance = PropertyEditorControllerService.getInstance();
- assertNotNull(instance);
- }
-
- /**
- * Test method for {@link org.eclipse.papyrus.diagram.common.parser.HTMLCleaner#cleanHTMLTags(java.lang.String)}.
- */
- @Test
- public void testProviders() {
- ArrayList<?> providersList = retrieveProviderList();
- assertNotNull(providersList);
- }
-
- /**
- * Test method for {@link org.eclipse.papyrus.diagram.common.parser.HTMLCleaner#cleanHTMLTags(java.lang.String)}.
- */
- @Test
- public void testProvidersNumber() {
- ArrayList<?> providersList = retrieveProviderList();
- assertTrue(providersList.size() == 2);
-
- // get the name of the 2 providers
- for(Object object : providersList) {
- assertTrue("object is a " + object.getClass().getName(), (object instanceof org.eclipse.papyrus.views.properties.runtime.controller.PropertyEditorControllerService.ProviderDescriptor));
- }
-
- }
-
- /**
- * Retrieves the list of providers provided by the service
- */
- protected ArrayList<?> retrieveProviderList() {
- Object providerList = null;
- for(Method method : Service.class.getDeclaredMethods()) {
- if("getAllProviders".equals(method.getName())) {
- method.setAccessible(true);
- try {
- providerList = method.invoke(getInstance());
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- break;
- }
- }
- return (providerList instanceof ArrayList<?>) ? (ArrayList<?>)providerList : null;
- }
-}