Author: ljelinko
Date: 2012-01-24 09:41:26 -0500 (Tue, 24 Jan 2012)
New Revision: 38096
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/launchers/JBDSCompatibilityTestSuite.launch
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/test/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/test/compatibility/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/test/compatibility/jbds-compatibility.zip
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDS4vs5Compatibility.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDSCompatibilityTestSuite.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java
Log:
JBDS compatibility test
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/launchers/JBDSCompatibilityTestSuite.launch
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/launchers/JBDSCompatibilityTestSuite.launch
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/launchers/JBDSCompatibilityTestSuite.launch 2012-01-24
14:41:26 UTC (rev 38096)
@@ -0,0 +1,42 @@
+<?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.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDSCompatibilityTestSuite.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=":${string_prompt:display
number:0}"/>
+</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.portlet.ui.bot.test.compatibility.JBDSCompatibilityTestSuite"/>
+<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.portlet.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=${file_prompt:"Please choose a SWTBot
configuration
file":${workspace_loc}/org.jboss.tools.portlet.ui.bot.test/resources/generated_config_files}
-Xmx1024m -XX:MaxPermSize=256m"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product"
value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<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>
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/test/compatibility/jbds-compatibility.zip
===================================================================
(Binary files differ)
Property changes on:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/resources/org/jboss/tools/portlet/ui/bot/test/compatibility/jbds-compatibility.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java 2012-01-24
14:40:32 UTC (rev 38095)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java 2012-01-24
14:41:26 UTC (rev 38096)
@@ -9,6 +9,7 @@
import org.jboss.tools.portlet.ui.bot.test.example.JavaPortletExampleRuntime4x;
import org.jboss.tools.portlet.ui.bot.test.example.RichFacesPortletExampleRuntime5x;
import org.jboss.tools.portlet.ui.bot.test.example.SeamPortletExampleRuntime4x;
+import org.jboss.tools.portlet.ui.bot.test.example.SeamPortletExampleRuntime5x;
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletProject;
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletRuntime4x;
import org.jboss.tools.portlet.ui.bot.test.jsf.CreateJSFPortletRuntime5x;
@@ -24,6 +25,7 @@
@RunWith(RequirementAwareSuite.class)
@Suite.SuiteClasses({
+ GateinStartupFix.class,
CreateJavaPortletProject.class,
CreateJavaPortlet.class,
RunJavaPortletOnServer.class,
@@ -41,7 +43,8 @@
JSFPortletExampleRuntime4x.class,
SeamPortletExampleRuntime4x.class,
JSFPortletExampleRuntime5x.class,
- RichFacesPortletExampleRuntime5x.class
+ RichFacesPortletExampleRuntime5x.class,
+ SeamPortletExampleRuntime5x.class
})
public class AllTestsSuite {
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDS4vs5Compatibility.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDS4vs5Compatibility.java
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDS4vs5Compatibility.java 2012-01-24
14:41:26 UTC (rev 38096)
@@ -0,0 +1,64 @@
+package org.jboss.tools.portlet.ui.bot.test.compatibility;
+
+import static
org.jboss.tools.portlet.ui.bot.matcher.factory.DefaultMatchersFactory.isNumberOfErrors;
+import static
org.jboss.tools.portlet.ui.bot.matcher.factory.WorkspaceMatchersFactory.isExistingProject;
+
+import org.jboss.tools.portlet.ui.bot.task.importing.project.ExistingProjectImportTask;
+import org.jboss.tools.portlet.ui.bot.task.wizard.WizardFillingTask;
+import
org.jboss.tools.portlet.ui.bot.task.wizard.importing.project.ExistingProjectWizardPageFillingTask;
+import org.jboss.tools.portlet.ui.bot.test.Activator;
+import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
+import org.jboss.tools.ui.bot.ext.SWTUtilExt;
+import org.jboss.tools.ui.bot.ext.config.Annotations.DB;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Seam;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.junit.Test;
+
+/**
+ * Tests that project from JBDS 4 can work in JBDS 5 without any problems.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+@Require(server=(a)Server(version="5.0", operator=">",
state=ServerState.Present), db=@DB, seam=@Seam)
+public class JBDS4vs5Compatibility extends SWTTaskBasedTestCase {
+
+ private static final String ZIP_FILE =
"resources/org/jboss/tools/portlet/ui/bot/test/compatibility/jbds-compatibility.zip";
+
+ private static final String CORE_PROJECT_NAME = "jbds-4-core";
+
+ private static final String JSF_PROJECT_NAME = "jbds-4-jsf";
+
+ private static final String SEAM_PROJECT_NAME = "jbds-4-seam";
+
+ @Test
+ public void testCompatibility(){
+ doPerform(new ExistingProjectImportTask());
+ doPerform(getWizardFillingTask());
+
+ doAssertThatInWorkspace(CORE_PROJECT_NAME, isExistingProject());
+ doAssertThatInWorkspace(JSF_PROJECT_NAME, isExistingProject());
+ doAssertThatInWorkspace(SEAM_PROJECT_NAME, isExistingProject());
+ doAssertThatInWorkspace(0, isNumberOfErrors());
+ }
+
+ private WizardFillingTask getWizardFillingTask(){
+ WizardFillingTask wizard = new WizardFillingTask();
+ wizard.addWizardPage(getWizardPage());
+ return wizard;
+ }
+
+ private ExistingProjectWizardPageFillingTask getWizardPage(){
+ ExistingProjectWizardPageFillingTask task = new
ExistingProjectWizardPageFillingTask();
+ task.setZipFilePath(getZIPFileLocation());
+ task.setProjectNames(CORE_PROJECT_NAME, JSF_PROJECT_NAME, SEAM_PROJECT_NAME);
+ task.setCopyProjectsIntoWorkspace(true);
+ return task;
+ }
+
+ private String getZIPFileLocation(){
+ return SWTUtilExt.getPathToFileWithinPlugin(Activator.PLUGIN_ID, ZIP_FILE);
+ }
+}
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDSCompatibilityTestSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDSCompatibilityTestSuite.java
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/compatibility/JBDSCompatibilityTestSuite.java 2012-01-24
14:41:26 UTC (rev 38096)
@@ -0,0 +1,13 @@
+package org.jboss.tools.portlet.ui.bot.test.compatibility;
+
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+(a)RunWith(RequirementAwareSuite.class)
+(a)Suite.SuiteClasses({
+ JBDS4vs5Compatibility.class,
+})
+public class JBDSCompatibilityTestSuite {
+
+}
Show replies by date