Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Constant2012-08-21 15:11:55 +0000
committerOlivier Constant2012-08-21 15:11:55 +0000
commite46d44890de75bb28f5a8c9049f6893924e90ca8 (patch)
tree503b95eafdb2ccf1a03a35c166d1192bda276ffd /tests/org.eclipse.emf.diffmerge.tests.wt.elements
parente083d850ec78681fbc8bc22df7ec302ff2e3e06c (diff)
downloadorg.eclipse.emf.diffmerge.core-e46d44890de75bb28f5a8c9049f6893924e90ca8.tar.gz
org.eclipse.emf.diffmerge.core-e46d44890de75bb28f5a8c9049f6893924e90ca8.tar.xz
org.eclipse.emf.diffmerge.core-e46d44890de75bb28f5a8c9049f6893924e90ca8.zip
Setting up tests
Diffstat (limited to 'tests/org.eclipse.emf.diffmerge.tests.wt.elements')
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/.classpath7
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/.project28
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/META-INF/MANIFEST.MF10
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/build.properties4
-rw-r--r--tests/org.eclipse.emf.diffmerge.tests.wt.elements/src/org/eclipse/emf/diffmerge/tests/wt/elements/Activator.java30
6 files changed, 87 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.classpath b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.classpath
new file mode 100644
index 00000000..8a8f1668
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.classpath
@@ -0,0 +1,7 @@
+<?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/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.project b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.project
new file mode 100644
index 00000000..2045fe55
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.emf.diffmerge.tests.wt.elements</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..db7f4fc9
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Tue Aug 21 14:31:36 CEST 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/META-INF/MANIFEST.MF b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/META-INF/MANIFEST.MF
new file mode 100644
index 00000000..d0eafbd5
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: WindowTester-based test plug-in on Elements
+Bundle-SymbolicName: org.eclipse.emf.diffmerge.tests.wt.elements
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.eclipse.emf.diffmerge.tests.wt.elements.Activator
+Require-Bundle: org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: Thales Global Services S.A.S.
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/build.properties b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/build.properties
new file mode 100644
index 00000000..41eb6ade
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/tests/org.eclipse.emf.diffmerge.tests.wt.elements/src/org/eclipse/emf/diffmerge/tests/wt/elements/Activator.java b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/src/org/eclipse/emf/diffmerge/tests/wt/elements/Activator.java
new file mode 100644
index 00000000..faa83e05
--- /dev/null
+++ b/tests/org.eclipse.emf.diffmerge.tests.wt.elements/src/org/eclipse/emf/diffmerge/tests/wt/elements/Activator.java
@@ -0,0 +1,30 @@
+package org.eclipse.emf.diffmerge.tests.wt.elements;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ static BundleContext getContext() {
+ return context;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+
+}

Back to the top