JBoss Tools SVN: r25982 - trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-10-21 12:48:58 -0400 (Thu, 21 Oct 2010)
New Revision: 25982
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java
Log:
JBIDE-7212 Corrupted layout on JBoss Runtime page
Modified: trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java 2010-10-21 16:34:19 UTC (rev 25981)
+++ trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java 2010-10-21 16:48:58 UTC (rev 25982)
@@ -111,8 +111,6 @@
Group runtimeGroup = new Group(composite, SWT.NONE);
layout = new GridLayout(1, false);
- layout.marginWidth = 0;
- layout.marginHeight = 0;
runtimeGroup.setLayout(layout);
runtimeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
runtimeGroup.setText("JBoss Runtimes");
14 years, 2 months
JBoss Tools SVN: r25981 - in trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test: .settings and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-10-21 12:34:19 -0400 (Thu, 21 Oct 2010)
New Revision: 25981
Added:
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.classpath
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.project
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/MANIFEST.MF
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/build.properties
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-bot.properties
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-multi.properties
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/JBPMAllTest.launch
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
Modified:
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/
Log:
Initial commit of jbpm bot tests
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test
___________________________________________________________________
Name: svn:ignore
+ screenshots
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.classpath
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.classpath (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.classpath 2010-10-21 16:34:19 UTC (rev 25981)
@@ -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>
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.project
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.project (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.project 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jbpm.ui.bot.test</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>
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/org.eclipse.jdt.core.prefs 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,8 @@
+#Tue Oct 19 14:08:38 CEST 2010
+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
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/MANIFEST.MF 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: jBPM Tools SWTBot Tests
+Bundle-SymbolicName: org.jboss.tools.jbpm.ui.bot.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.jbpm.ui.bot.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.gef.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit3.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit4.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.go;bundle-version="2.0.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.apache.log4j;bundle-version="1.2.15",
+ org.jboss.tools.ui.bot.ext;bundle-version="3.2.0",
+ org.junit4;bundle-version="4.8.1",
+ org.eclipse.gef;bundle-version="3.6.1"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/build.properties
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/build.properties (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/build.properties 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-bot.properties
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-bot.properties (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-bot.properties 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,13 @@
+# SWTBotTest properties
+# all properties are optional, all defined paths should exist
+# <java version>,<jre/jdk home>
+JAVA=1.6,/home/jpeterka/lib/jdk1.6.0_21-x64
+#EAP|JBOSS_AS|EPP|SOA,<server version>,<jre version to run with>|default,<server home>
+# note : when server is type of SOA, version is version of SOA (not the bundled EAP)
+#SERVER=EAP,5.0,1.6,/home/jpeterka/jboss-soa-p.5.0.0.0/jboss-as
+SERVER=SOA,5.0,1.6,/home/jpeterka/rt/jboss-soa-p.5.0.0/jboss-as
+JBPM=5.0,/home/jpeterka/rt/jboss-soa-p.5.0.0/jbpm-jpdl
+#<seam version>,<seam runtime home>
+#SEAM=2.2,/data/jboss/jboss-eap-5.0/seam
+#<esb versoin>,<esb runtime home>
+#ESB=4.7,/data/jboss/esb-4.7
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-bot.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-multi.properties
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-multi.properties (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-multi.properties 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,4 @@
+# multi-properties file, here can be defined multiple testing configurations similar to SWTTest-default.properties
+# <property name - configuration name>=<config properties file>
+# EAP5=/data/lzoubek/workspace/eap5.properties
+SOA=/home/jpeterka/etc/jbpm-bot.properties
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/conf/jbpm-multi.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/JBPMAllTest.launch
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/JBPMAllTest.launch (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/JBPMAllTest.launch 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.swtbot.eclipse.ui.launcher.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"/>
+<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.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+<mapEntry key="swtbot.test.properties.file" value="jbpm-bot.properties"/>
+</mapAttribute>
+<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.jboss.tools.jbpm.ui.bot.test.suite.JBPMAllTest"/>
+<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.jboss.tools.jbpm.ui.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dswtbot.test.properties.file=/home/jpeterka/etc/jbpm-bot.properties -Dswtbot.test.properties.multi.file=/home/jpeterka/etc/jbpm-multi.properties -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M -Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1:start,org.eclipse.equinox.transforms.xslt@1:start,org.jboss.tools.equinox.transforms.xslt@1:start"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/launcher/JBPMAllTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,50 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+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.jboss.tools.jbpm.ui.bot.test"; //$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;
+ }
+
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,53 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.eclipse.gef.finder.SWTGefBot;
+import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditor;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.view.PackageExplorer;
+import org.jboss.tools.ui.bot.ext.widgets.SWTBotMultiPageEditor;
+import org.junit.Test;
+
+@SWTBotTestRequires( clearProjects=false, jbpm=@JBPM(), server=(a)Server(type=ServerType.SOA,state=ServerState.Present))
+public class JBPMDeployTest extends JBPMTest {
+
+ @Test
+ public void deploy() {
+ PackageExplorer pe = new PackageExplorer();
+ pe.openFile(Project.PROJECT_NAME, "src/main/jpdl","simple.jpdl.xml");
+ util.waitForNonIgnoredJobs();
+
+ SWTGefBot gefBot = new SWTGefBot();
+ SWTBotGefEditor editor = gefBot.gefEditor("simple");
+ editor.setFocus();
+ SWTBotMultiPageEditor multi = new SWTBotMultiPageEditor(editor.getReference(), gefBot);
+ multi.activatePage("Deployment");
+
+ gefBot.textWithLabel("Server Name:").setText("127.0.0.1");
+ SWTBotText item = gefBot.textWithLabel("Server Deployer:").setText("gpd-deployer");
+ editor.save();
+
+ String serverName = TestConfigurator.currentConfig.getServer().type+"-"+TestConfigurator.currentConfig.getServer().version;
+ servers.startServer(serverName);
+
+ item.setFocus();
+ bot.menu("jBPM").menu("Ping Server").click();
+
+ bot.sleep(TIME_1S);
+ bot.text(0).setText("admin");
+ bot.text(1).setText("admin");
+ bot.clickButton(IDELabel.Button.OK);
+ bot.sleep(TIME_1S);
+ bot.clickButton(IDELabel.Button.OK);
+
+ bot.sleep(TIME_10S);
+ }
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,56 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.EntityType;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.Test;
+
+@SWTBotTestRequires( jbpm=@JBPM(), server=(a)Server(type=ServerType.SOA,state=ServerState.Present), perspective="jBPM jPDL 3")
+public class JBPMProjectTest extends JBPMTest {
+
+ @Test
+ public void createProject() {
+
+ // Create project
+ eclipse.createNew(EntityType.JBPM3_PROJECT);
+ bot.textWithLabel("Project name:").setText(Project.PROJECT_NAME);
+ bot.clickButton(IDELabel.Button.NEXT);
+
+ String rtName = "JBPM-"+TestConfigurator.currentConfig.getJBPM().version;
+
+ // There is some bug related to undefined runtime even it's defined
+ /*
+ bot.textWithLabel("Name :").setText(rtName);
+ String rtHome = TestConfigurator.currentConfig.getJBPM().jbpmHome;
+ bot.sleep(TIME_5S);
+
+ bot.textWithLabel("Location :").setText(rtHome);
+
+ String msg3 = "Press next to continue the project creation";
+
+ try {
+ bot.text(msg3);
+ } catch(WidgetNotFoundException e) {
+ fail("Missing confirmation during jbpm runtime definition text");
+ }
+
+ bot.clickButton(IDELabel.Button.NEXT);
+ */
+
+ bot.comboBox().setSelection(rtName);
+
+
+ SWTBotShell wizard = bot.activeShell();
+ bot.clickButton(IDELabel.Button.FINISH);
+ eclipse.waitForClosedShell(wizard);
+ util.waitForNonIgnoredJobs();
+ }
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,26 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import junit.framework.TestSuite;
+
+import org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest;
+import org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@SuiteClasses({ JBPMProjectTest.class, JBPMDeployTest.class, })
+(a)RunWith(RequirementAwareSuite.class)
+public class JBPMAllTest extends TestSuite {
+
+ @BeforeClass
+ public static void setUpSuite() {
+ JBPMTest.prepare();
+ }
+
+ @AfterClass
+ public static void tearDownSuite() {
+ JBPMTest.clean();
+ }
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,22 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+
+public class JBPMTest extends SWTTestExt {
+
+ public static void prepare() {
+ log.info("jBPM All Test started...");
+
+ jbt.closeReportUsageWindowIfOpened(true);
+ eclipse.maximizeActiveShell();
+ eclipse.closeView(IDELabel.View.WELCOME);
+ bot.closeAllEditors();
+ }
+
+ public static void clean() {
+ util.waitForNonIgnoredJobs();
+ bot.sleep(TIME_5S, "jBPM All Tests Finished!");
+ }
+
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java 2010-10-21 16:34:19 UTC (rev 25981)
@@ -0,0 +1,5 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+public class Project {
+ public static String PROJECT_NAME="jbpmtest1";
+}
Property changes on: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 2 months
JBoss Tools SVN: r25980 - trunk/jbpm/tests.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-10-21 12:21:52 -0400 (Thu, 21 Oct 2010)
New Revision: 25980
Added:
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/
Log:
jBPM SWTBot tests project folder added
14 years, 2 months
JBoss Tools SVN: r25979 - trunk/jbpm/tests.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-10-21 12:17:34 -0400 (Thu, 21 Oct 2010)
New Revision: 25979
Removed:
trunk/jbpm/tests/.classpath
trunk/jbpm/tests/.project
trunk/jbpm/tests/.settings/
trunk/jbpm/tests/META-INF/
trunk/jbpm/tests/build.properties
trunk/jbpm/tests/conf/
trunk/jbpm/tests/launcher/
trunk/jbpm/tests/screenshots/
trunk/jbpm/tests/src/
Log:
UNDO of wrong initial test commit, sorry for that ;-)
Deleted: trunk/jbpm/tests/.classpath
===================================================================
--- trunk/jbpm/tests/.classpath 2010-10-21 16:09:32 UTC (rev 25978)
+++ trunk/jbpm/tests/.classpath 2010-10-21 16:17:34 UTC (rev 25979)
@@ -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/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
Deleted: trunk/jbpm/tests/.project
===================================================================
--- trunk/jbpm/tests/.project 2010-10-21 16:09:32 UTC (rev 25978)
+++ trunk/jbpm/tests/.project 2010-10-21 16:17:34 UTC (rev 25979)
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.jboss.tools.jbpm.ui.bot.test</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>
Deleted: trunk/jbpm/tests/build.properties
===================================================================
--- trunk/jbpm/tests/build.properties 2010-10-21 16:09:32 UTC (rev 25978)
+++ trunk/jbpm/tests/build.properties 2010-10-21 16:17:34 UTC (rev 25979)
@@ -1,4 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
14 years, 2 months
JBoss Tools SVN: r25978 - in trunk/jbpm/tests: .settings and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-10-21 12:09:32 -0400 (Thu, 21 Oct 2010)
New Revision: 25978
Added:
trunk/jbpm/tests/.classpath
trunk/jbpm/tests/.project
trunk/jbpm/tests/.settings/
trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
trunk/jbpm/tests/META-INF/
trunk/jbpm/tests/META-INF/MANIFEST.MF
trunk/jbpm/tests/build.properties
trunk/jbpm/tests/conf/
trunk/jbpm/tests/launcher/
trunk/jbpm/tests/launcher/JBPMAllTest.launch
trunk/jbpm/tests/screenshots/
trunk/jbpm/tests/screenshots/SOA - createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
trunk/jbpm/tests/src/
trunk/jbpm/tests/src/org/
trunk/jbpm/tests/src/org/jboss/
trunk/jbpm/tests/src/org/jboss/tools/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
Log:
Initial commit of SWTBot tests for jBPM part of JBoss Tools
Added: trunk/jbpm/tests/.classpath
===================================================================
--- trunk/jbpm/tests/.classpath (rev 0)
+++ trunk/jbpm/tests/.classpath 2010-10-21 16:09:32 UTC (rev 25978)
@@ -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>
Property changes on: trunk/jbpm/tests/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/.project
===================================================================
--- trunk/jbpm/tests/.project (rev 0)
+++ trunk/jbpm/tests/.project 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jbpm.ui.bot.test</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>
Property changes on: trunk/jbpm/tests/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,8 @@
+#Tue Oct 19 14:08:38 CEST 2010
+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
Property changes on: trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/META-INF/MANIFEST.MF
===================================================================
--- trunk/jbpm/tests/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jbpm/tests/META-INF/MANIFEST.MF 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: jBPM Tools SWTBot Tests
+Bundle-SymbolicName: org.jboss.tools.jbpm.ui.bot.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.jbpm.ui.bot.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.gef.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit3.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit4.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.go;bundle-version="2.0.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.apache.log4j;bundle-version="1.2.15",
+ org.jboss.tools.ui.bot.ext;bundle-version="3.2.0",
+ org.junit4;bundle-version="4.8.1",
+ org.eclipse.gef;bundle-version="3.6.1"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Property changes on: trunk/jbpm/tests/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/build.properties
===================================================================
--- trunk/jbpm/tests/build.properties (rev 0)
+++ trunk/jbpm/tests/build.properties 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/jbpm/tests/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/launcher/JBPMAllTest.launch
===================================================================
--- trunk/jbpm/tests/launcher/JBPMAllTest.launch (rev 0)
+++ trunk/jbpm/tests/launcher/JBPMAllTest.launch 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.swtbot.eclipse.ui.launcher.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"/>
+<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.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+<mapEntry key="swtbot.test.properties.file" value="jbpm-bot.properties"/>
+</mapAttribute>
+<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.jboss.tools.jbpm.ui.bot.test.suite.JBPMAllTest"/>
+<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.jboss.tools.jbpm.ui.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dswtbot.test.properties.file=/home/jpeterka/etc/jbpm-bot.properties -Dswtbot.test.properties.multi.file=/home/jpeterka/etc/jbpm-multi.properties -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M -Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1:start,org.eclipse.equinox.transforms.xslt@1:start,org.jboss.tools.equinox.transforms.xslt@1:start"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Property changes on: trunk/jbpm/tests/launcher/JBPMAllTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/screenshots/SOA - createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA - createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA - deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,50 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+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.jboss.tools.jbpm.ui.bot.test"; //$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;
+ }
+
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,53 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.eclipse.gef.finder.SWTGefBot;
+import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditor;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.view.PackageExplorer;
+import org.jboss.tools.ui.bot.ext.widgets.SWTBotMultiPageEditor;
+import org.junit.Test;
+
+@SWTBotTestRequires( clearProjects=false, jbpm=@JBPM(), server=(a)Server(type=ServerType.SOA,state=ServerState.Present))
+public class JBPMDeployTest extends JBPMTest {
+
+ @Test
+ public void deploy() {
+ PackageExplorer pe = new PackageExplorer();
+ pe.openFile(Project.PROJECT_NAME, "src/main/jpdl","simple.jpdl.xml");
+ util.waitForNonIgnoredJobs();
+
+ SWTGefBot gefBot = new SWTGefBot();
+ SWTBotGefEditor editor = gefBot.gefEditor("simple");
+ editor.setFocus();
+ SWTBotMultiPageEditor multi = new SWTBotMultiPageEditor(editor.getReference(), gefBot);
+ multi.activatePage("Deployment");
+
+ gefBot.textWithLabel("Server Name:").setText("127.0.0.1");
+ SWTBotText item = gefBot.textWithLabel("Server Deployer:").setText("gpd-deployer");
+ editor.save();
+
+ String serverName = TestConfigurator.currentConfig.getServer().type+"-"+TestConfigurator.currentConfig.getServer().version;
+ servers.startServer(serverName);
+
+ item.setFocus();
+ bot.menu("jBPM").menu("Ping Server").click();
+
+ bot.sleep(TIME_1S);
+ bot.text(0).setText("admin");
+ bot.text(1).setText("admin");
+ bot.clickButton(IDELabel.Button.OK);
+ bot.sleep(TIME_1S);
+ bot.clickButton(IDELabel.Button.OK);
+
+ bot.sleep(TIME_10S);
+ }
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,56 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.EntityType;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.Test;
+
+@SWTBotTestRequires( jbpm=@JBPM(), server=(a)Server(type=ServerType.SOA,state=ServerState.Present), perspective="jBPM jPDL 3")
+public class JBPMProjectTest extends JBPMTest {
+
+ @Test
+ public void createProject() {
+
+ // Create project
+ eclipse.createNew(EntityType.JBPM3_PROJECT);
+ bot.textWithLabel("Project name:").setText(Project.PROJECT_NAME);
+ bot.clickButton(IDELabel.Button.NEXT);
+
+ String rtName = "JBPM-"+TestConfigurator.currentConfig.getJBPM().version;
+
+ // There is some bug related to undefined runtime even it's defined
+ /*
+ bot.textWithLabel("Name :").setText(rtName);
+ String rtHome = TestConfigurator.currentConfig.getJBPM().jbpmHome;
+ bot.sleep(TIME_5S);
+
+ bot.textWithLabel("Location :").setText(rtHome);
+
+ String msg3 = "Press next to continue the project creation";
+
+ try {
+ bot.text(msg3);
+ } catch(WidgetNotFoundException e) {
+ fail("Missing confirmation during jbpm runtime definition text");
+ }
+
+ bot.clickButton(IDELabel.Button.NEXT);
+ */
+
+ bot.comboBox().setSelection(rtName);
+
+
+ SWTBotShell wizard = bot.activeShell();
+ bot.clickButton(IDELabel.Button.FINISH);
+ eclipse.waitForClosedShell(wizard);
+ util.waitForNonIgnoredJobs();
+ }
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,26 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import junit.framework.TestSuite;
+
+import org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest;
+import org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@SuiteClasses({ JBPMProjectTest.class, JBPMDeployTest.class, })
+(a)RunWith(RequirementAwareSuite.class)
+public class JBPMAllTest extends TestSuite {
+
+ @BeforeClass
+ public static void setUpSuite() {
+ JBPMTest.prepare();
+ }
+
+ @AfterClass
+ public static void tearDownSuite() {
+ JBPMTest.clean();
+ }
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,22 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+
+public class JBPMTest extends SWTTestExt {
+
+ public static void prepare() {
+ log.info("jBPM All Test started...");
+
+ jbt.closeReportUsageWindowIfOpened(true);
+ eclipse.maximizeActiveShell();
+ eclipse.closeView(IDELabel.View.WELCOME);
+ bot.closeAllEditors();
+ }
+
+ public static void clean() {
+ util.waitForNonIgnoredJobs();
+ bot.sleep(TIME_5S, "jBPM All Tests Finished!");
+ }
+
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java (rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,5 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+public class Project {
+ public static String PROJECT_NAME="jbpmtest1";
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 2 months
JBoss Tools SVN: r25977 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-10-21 11:07:14 -0400 (Thu, 21 Oct 2010)
New Revision: 25977
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
Log:
[JBIDE-7384] implemented RESTful status handling
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java 2010-10-21 14:53:50 UTC (rev 25976)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java 2010-10-21 15:07:14 UTC (rev 25977)
@@ -83,7 +83,7 @@
@Override
public String toString() {
- return "/api/" + getResourceName();
+ return "/" + getResourceName();
}
public String getResourceName() {
@@ -118,7 +118,7 @@
private String sendRequest(String path, RequestType requestType) throws DeltaCloudClientException {
DefaultHttpClient httpClient = addCredentials(new DefaultHttpClient());
- String requestUrl = baseUrl.toString() + path;
+ String requestUrl = baseUrl.toString() + "/api" + path;
logger.debug("Sending Request to: " + requestUrl);
try {
14 years, 2 months
JBoss Tools SVN: r25976 - trunk/build/target-platform.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-10-21 10:53:50 -0400 (Thu, 21 Oct 2010)
New Revision: 25976
Modified:
trunk/build/target-platform/build.xml
Log:
update to latest Eclipse 3.6.x Maintenance build
Modified: trunk/build/target-platform/build.xml
===================================================================
--- trunk/build/target-platform/build.xml 2010-10-21 14:22:55 UTC (rev 25975)
+++ trunk/build/target-platform/build.xml 2010-10-21 14:53:50 UTC (rev 25976)
@@ -81,7 +81,7 @@
<!-- TODO: make this work on Mac and Windows? Currently only meant to work with linux 32- and 64-bit slaves -->
<target name="get.eclipse">
<!-- NOTE: must use same platform (50M) or SDK (103M - 168M) version as feature version on target platform, or will get install/update conflicts -->
- <property name="eclipse.version" value="M20101013-0800" />
+ <property name="eclipse.version" value="M20101020-0925" />
<property name="eclipse.URL" value="http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downl..." />
<!--<property name="eclipse.URL" value="http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downl..." />
<property name="eclipse.version" value="eclipse-SDK-3.6.1" /> -->
14 years, 2 months
JBoss Tools SVN: r25975 - trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-10-21 10:22:55 -0400 (Thu, 21 Oct 2010)
New Revision: 25975
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
Log:
[JBIDE-7371] added asserts to "list instances" test
Modified: trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 14:16:21 UTC (rev 25974)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 14:22:55 UTC (rev 25975)
@@ -101,14 +101,16 @@
public void canListMockInstances() throws DeltaCloudClientException {
List<Instance> instances = client.listInstances();
assertEquals(1, instances.size());
- assertInstance("inst0", "Mock Instance With Profile Change", "mockuser", "img1", "us", instances.get(0));
+ assertInstance("inst0", "Mock Instance With Profile Change", "mockuser", "img1", "us", "m1-large", "12288 MB", instances.get(0));
}
- private void assertInstance(String id, String name, String owner, String ImageId, String realmId, Instance instance) {
+ private void assertInstance(String id, String name, String owner, String ImageId, String realmId, String profile, String memory, Instance instance) {
assertEquals(id, instance.getId());
assertEquals(name, instance.getName());
assertEquals(owner, instance.getOwnerId());
assertEquals(realmId, instance.getRealmId());
+ assertEquals(profile, instance.getProfileId());
+ assertEquals(memory, instance.getMemory());
}
}
14 years, 2 months
JBoss Tools SVN: r25974 - trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-10-21 10:16:21 -0400 (Thu, 21 Oct 2010)
New Revision: 25974
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
Log:
[JBIDE-7371] completed list instances test
Modified: trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 13:55:20 UTC (rev 25973)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 14:16:21 UTC (rev 25974)
@@ -1,8 +1,8 @@
package org.jboss.tools.internal.deltacloud.test;
-import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.MalformedURLException;
@@ -15,6 +15,7 @@
import org.jboss.tools.deltacloud.core.client.DeltaCloudClient;
import org.jboss.tools.deltacloud.core.client.DeltaCloudClientException;
import org.jboss.tools.deltacloud.core.client.Image;
+import org.jboss.tools.deltacloud.core.client.Instance;
import org.jboss.tools.internal.deltacloud.test.fakes.ServerFake;
import org.junit.Before;
import org.junit.Test;
@@ -95,4 +96,19 @@
assertEquals(architecture, image.getArchitecture());
assertEquals(description, image.getDescription());
}
+
+ @Test
+ public void canListMockInstances() throws DeltaCloudClientException {
+ List<Instance> instances = client.listInstances();
+ assertEquals(1, instances.size());
+ assertInstance("inst0", "Mock Instance With Profile Change", "mockuser", "img1", "us", instances.get(0));
+ }
+
+ private void assertInstance(String id, String name, String owner, String ImageId, String realmId, Instance instance) {
+ assertEquals(id, instance.getId());
+ assertEquals(name, instance.getName());
+ assertEquals(owner, instance.getOwnerId());
+ assertEquals(realmId, instance.getRealmId());
+ }
+
}
14 years, 2 months
JBoss Tools SVN: r25973 - trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-10-21 09:55:20 -0400 (Thu, 21 Oct 2010)
New Revision: 25973
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
Log:
[JBIDE-7371] completed listImages test
Modified: trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 13:42:24 UTC (rev 25972)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/DeltaCloudMockClientIntegrationTest.java 2010-10-21 13:55:20 UTC (rev 25973)
@@ -8,11 +8,13 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
+import java.util.List;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;
import org.jboss.tools.deltacloud.core.client.DeltaCloudClient;
import org.jboss.tools.deltacloud.core.client.DeltaCloudClientException;
+import org.jboss.tools.deltacloud.core.client.Image;
import org.jboss.tools.internal.deltacloud.test.fakes.ServerFake;
import org.junit.Before;
import org.junit.Test;
@@ -78,7 +80,19 @@
}
@Test
- public void canListImages() throws DeltaCloudClientException {
- client.listImages();
+ public void canListMockImages() throws DeltaCloudClientException {
+ List<Image> images = client.listImages();
+ assertEquals(3, images.size());
+ assertImage("img2", "Fedora 10", "fedoraproject", "Fedora 10", "i386", images.get(0));
+ assertImage("img1", "Fedora 10", "fedoraproject", "Fedora 10", "x86_64", images.get(1));
+ assertImage("img3", "JBoss", "mockuser", "JBoss", "i386", images.get(2));
}
+
+ private void assertImage(String id, String name, String owner, String description, String architecture, Image image) {
+ assertEquals(id, image.getId());
+ assertEquals(name, image.getName());
+ assertEquals(owner, image.getOwnerId());
+ assertEquals(architecture, image.getArchitecture());
+ assertEquals(description, image.getDescription());
+ }
}
14 years, 2 months