Author: ljelinko
Date: 2012-01-24 09:40:10 -0500 (Tue, 24 Jan 2012)
New Revision: 38093
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/GateinStartupFix.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/ExamplesSuite.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExampleRuntime5x.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/seam/SeamPortletTestSuite.java
Log:
Created fix for Gatein startup
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/GateinStartupFix.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/GateinStartupFix.java
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/GateinStartupFix.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -0,0 +1,34 @@
+package org.jboss.tools.portlet.ui.bot.test;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
+import org.jboss.tools.ui.bot.ext.SWTBotFactory;
+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.jboss.tools.ui.bot.ext.view.ServersView;
+import org.junit.Test;
+
+@Require(server=(a)Server(version="5.1.0", state=ServerState.Present),
seam=@Seam)
+public class GateinStartupFix extends SWTTaskBasedTestCase {
+
+ @Test
+ public void testFix(){
+ ServersView serversView = SWTBotFactory.getServers();
+ serversView.show();
+
+ SWTBotTreeItem server = serversView.findServerByName(bot.tree(),
configuredState.getServer().name);
+ server.doubleClick();
+
+ bot.hyperlink("Open launch configuration").click();
+
+ SWTBotText vmArgumetsText = bot.textInGroup("VM arguments:");
+ String vmArgs = vmArgumetsText.getText();
+ vmArgumetsText.setText(vmArgs + " -Dexo.conf.dir.name=gatein ");
+
+ bot.button("OK").click();
+ System.out.println();
+ }
+}
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java 2012-01-24
14:39:51 UTC (rev 38092)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/core/JavaPortletTestSuite.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -1,11 +1,13 @@
package org.jboss.tools.portlet.ui.bot.test.core;
+import org.jboss.tools.portlet.ui.bot.test.GateinStartupFix;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(RequirementAwareSuite.class)
@Suite.SuiteClasses({
+ GateinStartupFix.class,
CreateJavaPortletProject.class,
CreateJavaPortlet.class,
RunJavaPortletOnServer.class,
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/ExamplesSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/ExamplesSuite.java 2012-01-24
14:39:51 UTC (rev 38092)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/ExamplesSuite.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -1,11 +1,13 @@
package org.jboss.tools.portlet.ui.bot.test.example;
+import org.jboss.tools.portlet.ui.bot.test.GateinStartupFix;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(RequirementAwareSuite.class)
@Suite.SuiteClasses({
+ GateinStartupFix.class,
JavaPortletExampleRuntime4x.class,
JSFPortletExampleRuntime4x.class,
SeamPortletExampleRuntime4x.class,
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExampleRuntime5x.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExampleRuntime5x.java 2012-01-24
14:39:51 UTC (rev 38092)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/example/SeamPortletExampleRuntime5x.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -14,7 +14,7 @@
* @author Lucia Jelinkova
*
*/
-@Require(db=@DB, seam=@Seam, server=(a)Server(version="5.0",
operator=">", state=ServerState.Present, type=ServerType.EPP))
+@Require(db=@DB, seam=@Seam, server=(a)Server(version="5.0",
operator=">", state=ServerState.Running, type=ServerType.EPP))
public class SeamPortletExampleRuntime5x extends AbstractPortletExampleRuntime5xTest {
private static final String PROJECT_NAME_IN_WIZARD = "SeamPortlet";
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java 2012-01-24
14:39:51 UTC (rev 38092)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/jsf/JSFPortletTestSuite.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -1,11 +1,13 @@
package org.jboss.tools.portlet.ui.bot.test.jsf;
+import org.jboss.tools.portlet.ui.bot.test.GateinStartupFix;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(RequirementAwareSuite.class)
@Suite.SuiteClasses({
+ GateinStartupFix.class,
CreateJSFPortletProject.class,
CreateJSFPortletRuntime4x.class,
CreateJSFPortletRuntime5x.class,
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/seam/SeamPortletTestSuite.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/seam/SeamPortletTestSuite.java 2012-01-24
14:39:51 UTC (rev 38092)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/seam/SeamPortletTestSuite.java 2012-01-24
14:40:10 UTC (rev 38093)
@@ -1,11 +1,13 @@
package org.jboss.tools.portlet.ui.bot.test.seam;
+import org.jboss.tools.portlet.ui.bot.test.GateinStartupFix;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(RequirementAwareSuite.class)
@Suite.SuiteClasses({
+ GateinStartupFix.class,
CreateSeamPortletProject.class,
CreateSeamPortletRuntime4x.class,
CreateSeamPortletRuntime5x.class,
Show replies by date