Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-12 10:45:13 -0400
committerTom Schindl2014-05-12 10:45:13 -0400
commitc9bb3adcc875fe2675c98c9310b2cff8fdb58eac (patch)
tree3b95404c546ee5e3779a9825e7090ef3c2e38610 /demos/org.eclipse.fx.testcases.dnd.app.jemmy
parent5768f363b6401d97e48e6b064f1ccbfabe49d3a2 (diff)
downloadorg.eclipse.efxclipse-c9bb3adcc875fe2675c98c9310b2cff8fdb58eac.tar.gz
org.eclipse.efxclipse-c9bb3adcc875fe2675c98c9310b2cff8fdb58eac.tar.xz
org.eclipse.efxclipse-c9bb3adcc875fe2675c98c9310b2cff8fdb58eac.zip
Bug 434228 - [e4] Add support for DnD of Parts
Diffstat (limited to 'demos/org.eclipse.fx.testcases.dnd.app.jemmy')
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/.classpath7
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/.project28
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/META-INF/MANIFEST.MF55
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/bin/.gitignore1
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/build.properties3
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/org.eclipse.fx.testcases.dnd.app.jemmy.launch50
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/pom.xml79
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/SampleTestCase.java24
-rw-r--r--demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/TestSuite.java12
9 files changed, 259 insertions, 0 deletions
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.classpath b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.classpath
new file mode 100644
index 000000000..22f30643c
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.project b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.project
new file mode 100644
index 000000000..1184fc578
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.testcases.dnd.app.jemmy</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/META-INF/MANIFEST.MF b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..93af749d0
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/META-INF/MANIFEST.MF
@@ -0,0 +1,55 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: My Sample App Jemmy UI Tests
+Bundle-SymbolicName: org.eclipse.fx.testcases.dnd.app.jemmy
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
+Require-Bundle: org.junit,
+ at.bestsolution.efxclipse.jemmy
+Import-Package: javax.inject;version="1.0.0",
+ javax.annotation;version="1.0.0",
+ javafx.animation;version="2.0.0",
+ javafx.application;version="2.0.0",
+ javafx.beans;version="2.0.0",
+ javafx.beans.binding;version="2.0.0",
+ javafx.beans.property;version="2.0.0",
+ javafx.beans.value;version="2.0.0",
+ javafx.collections;version="2.0.0",
+ javafx.concurrent;version="2.0.0",
+ javafx.event;version="2.0.0",
+ javafx.fxml;version="2.0.0",
+ javafx.geometry;version="2.0.0",
+ javafx.scene;version="2.0.0",
+ javafx.scene.chart;version="2.0.0",
+ javafx.scene.control;version="2.0.0",
+ javafx.scene.control.cell;version="2.0.0",
+ javafx.scene.effect;version="2.0.0",
+ javafx.scene.image;version="2.0.0",
+ javafx.scene.input;version="2.0.0",
+ javafx.scene.layout;version="2.0.0",
+ javafx.scene.media;version="2.0.0",
+ javafx.scene.paint;version="2.0.0",
+ javafx.scene.shape;version="2.0.0",
+ javafx.scene.text;version="2.0.0",
+ javafx.scene.transform;version="2.0.0",
+ javafx.scene.web;version="2.0.0",
+ javafx.stage;version="2.0.0",
+ javafx.util;version="2.0.0",
+ org.jemmy.action;version="3.0.0",
+ org.jemmy.browser;version="3.0.0",
+ org.jemmy.control;version="3.0.0",
+ org.jemmy.dock;version="3.0.0",
+ org.jemmy.env;version="3.0.0",
+ org.jemmy.fx;version="3.0.0",
+ org.jemmy.fx.control;version="3.0.0",
+ org.jemmy.fx.control.caspian;version="3.0.0",
+ org.jemmy.image;version="3.0.0",
+ org.jemmy.image.pixel;version="3.0.0",
+ org.jemmy.input;version="3.0.0",
+ org.jemmy.input.glass;version="3.0.0",
+ org.jemmy.interfaces;version="3.0.0",
+ org.jemmy.lookup;version="3.0.0",
+ org.jemmy.operators;version="3.0.0",
+ org.jemmy.resources;version="3.0.0",
+ org.jemmy.support;version="3.0.0",
+ org.jemmy.timing;version="3.0.0"
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/bin/.gitignore b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/bin/.gitignore
new file mode 100644
index 000000000..571ee510a
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/bin/.gitignore
@@ -0,0 +1 @@
+/org
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/build.properties b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/build.properties
new file mode 100644
index 000000000..c634d9795
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/build.properties
@@ -0,0 +1,3 @@
+bin.includes = .,\
+ META-INF/
+source.. = src/
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/org.eclipse.fx.testcases.dnd.app.jemmy.launch b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/org.eclipse.fx.testcases.dnd.app.jemmy.launch
new file mode 100644
index 000000000..b5145e6e6
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/org.eclipse.fx.testcases.dnd.app.jemmy.launch
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<setAttribute key="additional_plugins"/>
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="false"/>
+<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="false"/>
+<stringAttribute key="featureDefaultLocation" value="workspace"/>
+<stringAttribute key="featurePluginResolution" value="workspace"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/my.app.sample.jemmy/src/my/app/sample/jemmy/TestSuite.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<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="org.eclipse.fx.testcases.dnd.app.jemmy.TestSuite"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-nl ${target.nl} -consoleLog -nosplash"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.fx.testcases.dnd.app.jemmy"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m -Dosgi.framework.extensions=org.eclipse.fx.osgi -Dtest.jemmy.product=org.eclipse.fx.testcases.dnd.app.product"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="false"/>
+<setAttribute key="selected_features">
+<setEntry value="org.eclipse.fx.testcases.dnd.app.jemmy.feature:default"/>
+<setEntry value="at.bestsolution.efxclipse.jemmy.feature:default"/>
+<setEntry value="at.bestsolution.efxclipse.jemmy.junit.feature:default"/>
+<setEntry value="org.eclipse.fx.testcases.dnd.app.feature:default"/>
+</setAttribute>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="true"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/pom.xml b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/pom.xml
new file mode 100644
index 000000000..0dfef5b8c
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/pom.xml
@@ -0,0 +1,79 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>DnDSample - jemmy tests</name>
+ <groupId>org.eclipse.fx.testcases.dnd</groupId>
+ <artifactId>org.eclipse.fx.testcases.dnd.app.jemmy</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <parent>
+ <groupId>org.eclipse.fx.testcases.dnd</groupId>
+ <artifactId>org.eclipse.fx.testcases.dnd.app.releng</artifactId>
+ <relativePath>../org.eclipse.fx.testcases.dnd.app.releng/pom.xml</relativePath>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <testSuite>org.eclipse.fx.testcases.dnd.app.jemmy</testSuite>
+ <testClass>org.eclipse.fx.testcases.dnd.app.jemmy.TestSuite</testClass>
+ <useUIHarness>false</useUIHarness>
+ <useUIThread>false</useUIThread>
+ <argLine>-Xms40m -Xmx512m -Defxclipse.osgi.hook.debug=true -Dosgi.framework.extensions=org.eclipse.fx.osgi -Dtest.jemmy.product=org.eclipse.fx.testcases.dnd.app.product</argLine>
+ <appArgLine>-consoleLog -nosplash</appArgLine>
+ <application>org.eclipse.pde.junit.runtime.coretestapplication</application>
+ <dependencies>
+ <dependency>
+ <type>eclipse-feature</type>
+ <artifactId>org.eclipse.fx.testcases.dnd.app.feature</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ </dependencies>
+ <frameworkExtensions>
+ <frameworkExtension>
+ <groupId>org.eclipse.fx.runtime</groupId>
+ <artifactId>org.eclipse.fx.osgi</artifactId>
+ <version>${efx-version}</version>
+ </frameworkExtension>
+ </frameworkExtensions>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/SampleTestCase.java b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/SampleTestCase.java
new file mode 100644
index 000000000..aa13da192
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/SampleTestCase.java
@@ -0,0 +1,24 @@
+package org.eclipse.fx.testcases.dnd.app.jemmy;
+
+import org.jemmy.fx.SceneDock;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class SampleTestCase {
+ protected static SceneDock scene;
+
+ @BeforeClass
+ public static void startApp() throws InterruptedException {
+ try {
+ scene = new SceneDock();
+ } catch(Throwable t ) {
+ t.printStackTrace();
+ }
+ }
+
+ @Test
+ public void sampleTestMethod() {
+ Assert.fail("Not implemented");
+ }
+}
diff --git a/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/TestSuite.java b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/TestSuite.java
new file mode 100644
index 000000000..fd42fc435
--- /dev/null
+++ b/demos/org.eclipse.fx.testcases.dnd.app.jemmy/src/org/eclipse/fx/testcases/dnd/app/jemmy/TestSuite.java
@@ -0,0 +1,12 @@
+package org.eclipse.fx.testcases.dnd.app.jemmy;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+import at.bestsolution.efxclipse.jemmy.OSGiJemmyBootstrapTestCase;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ SampleTestCase.class })
+public class TestSuite extends OSGiJemmyBootstrapTestCase {
+
+}

Back to the top