Author: ljelinko
Date: 2011-11-21 08:07:49 -0500 (Mon, 21 Nov 2011)
New Revision: 36484
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/create/CreateJavaPortlet.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java
Log:
created new test
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 2011-11-21
13:07:26 UTC (rev 36483)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/AllTestsSuite.java 2011-11-21
13:07:49 UTC (rev 36484)
@@ -1,12 +1,14 @@
package org.jboss.tools.portlet.ui.bot.test;
+import org.jboss.tools.portlet.ui.bot.test.create.CreateJavaPortlet;
import org.jboss.tools.portlet.ui.bot.test.create.CreateJavaPortletProject;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(RequirementAwareUsageWindowClosingSuite.class)
@Suite.SuiteClasses({
- CreateJavaPortletProject.class
+ CreateJavaPortletProject.class,
+ CreateJavaPortlet.class
})
public class AllTestsSuite {
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/create/CreateJavaPortlet.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/create/CreateJavaPortlet.java
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/create/CreateJavaPortlet.java 2011-11-21
13:07:49 UTC (rev 36484)
@@ -0,0 +1,33 @@
+package org.jboss.tools.portlet.ui.bot.test.create;
+
+import org.jboss.tools.portlet.ui.bot.test.task.SWTTask;
+import org.jboss.tools.portlet.ui.bot.test.task.wizard.web.jboss.PortletCreationTask;
+import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
+import org.junit.Test;
+
+/**
+ * Creates a new java portlet.
+ *
+ * @author Lucia Jelinkova
+ *
+ */
+public class CreateJavaPortlet extends SWTTaskBasedTestCase {
+
+ private static final String CLASS_NAME = "UITestingPortlet";
+
+ private static final String PACKAGE_NAME =
"org.jboss.tools.tests.ui.portlet";
+
+ @Test
+ public void testCreate(){
+ doPerform(getCreatePortletTask());
+ System.out.println("");
+ }
+
+ private SWTTask getCreatePortletTask() {
+ PortletCreationTask task = new PortletCreationTask();
+ task.setProject(CreateJavaPortletProject.PROJECT_NAME);
+ task.setPackageName(PACKAGE_NAME);
+ task.setClassName(CLASS_NAME);
+ return task;
+ }
+}
Show replies by date