Author: ljelinko
Date: 2012-01-24 09:36:07 -0500 (Tue, 24 Jan 2012)
New Revision: 38087
Added:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardOpeningAndFillingTask.java
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardFillingTask.java
Log:
Created separate wizard filling task
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardFillingTask.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardFillingTask.java 2012-01-24
14:34:35 UTC (rev 38086)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardFillingTask.java 2012-01-24
14:36:07 UTC (rev 38087)
@@ -12,35 +12,23 @@
/**
*
- * Provides the functionality of opening wizard and navigating between its pages. The
data
- * should fill every wizard page itself.
+ * Provides the functionality of navigating between pages of open wizard. The data
+ * should fill every wizard page itself.
*
- * @author ljelinko
+ * @author Lucia Jelinkova
*
*/
public class WizardFillingTask extends CompositeSWTTask<WizardPageFillingTask>{
private List<WizardPageFillingTask> wizardPages;
- private String wizardName;
-
- private String wizardPath;
-
- public WizardFillingTask(String name) {
- this(name, null);
- }
-
- public WizardFillingTask(String name, String path) {
+ public WizardFillingTask() {
super();
- this.wizardName = name;
- this.wizardPath = path;
wizardPages = new ArrayList<WizardPageFillingTask>();
}
-
+
@Override
public void perform() {
- performInnerTask(new WizardOpeningTask(wizardName, wizardPath));
-
SWTBotShell activeShell = getActiveShell();
super.setTasks(wizardPages);
@@ -79,4 +67,4 @@
throw new IllegalStateException("No active shell found");
}
-}
+}
\ No newline at end of file
Copied:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardOpeningAndFillingTask.java
(from rev 37820,
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardFillingTask.java)
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardOpeningAndFillingTask.java
(rev 0)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/task/wizard/WizardOpeningAndFillingTask.java 2012-01-24
14:36:07 UTC (rev 38087)
@@ -0,0 +1,33 @@
+package org.jboss.tools.portlet.ui.bot.task.wizard;
+
+
+/**
+ *
+ * Provides the functionality of opening wizard and navigating between its pages. The
data
+ * should fill every wizard page itself.
+ *
+ * @author ljelinko
+ *
+ */
+public class WizardOpeningAndFillingTask extends WizardFillingTask {
+
+ private String wizardName;
+
+ private String wizardPath;
+
+ public WizardOpeningAndFillingTask(String name) {
+ this(name, null);
+ }
+
+ public WizardOpeningAndFillingTask(String name, String path) {
+ super();
+ this.wizardName = name;
+ this.wizardPath = path;
+ }
+
+ @Override
+ public void perform() {
+ performInnerTask(new WizardOpeningTask(wizardName, wizardPath));
+ super.perform();
+ }
+}