Author: lzoubek(a)redhat.com
Date: 2010-10-04 05:11:07 -0400 (Mon, 04 Oct 2010)
New Revision: 25442
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/.project
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java
Log:
esb bot tests:fixed new Hibernate and Schedule provider wizards
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/.project
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/.project 2010-10-04 09:09:38 UTC (rev
25441)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/.project 2010-10-04 09:11:07 UTC (rev
25442)
@@ -6,6 +6,11 @@
</projects>
<buildSpec>
<buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
@@ -24,5 +29,6 @@
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java
===================================================================
---
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java 2010-10-04
09:09:38 UTC (rev 25441)
+++
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBProviderFactory.java 2010-10-04
09:11:07 UTC (rev 25442)
@@ -32,8 +32,12 @@
shell.bot().text(1).setText("hibernate.cfg.xml");
Assertions.assertButtonEnabled(shell.bot().button(IDELabel.Button.NEXT), true);
shell.bot().button(IDELabel.Button.NEXT).click();
- Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
+ Assertions.assertButtonEnabled(shell.bot().button(IDELabel.Button.NEXT), false);
shell.bot().text(0).setText(this.uiName);
+ Assertions.assertButtonEnabled(shell.bot().button(IDELabel.Button.NEXT), true);
+ shell.bot().button(IDELabel.Button.NEXT).click();
+ Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
+ shell.bot().text(0).setText("java.lang.Object");
Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), true);
}
};
@@ -84,13 +88,7 @@
};
}
public static ESBProvider providerSchedule() {
- return new ESBProvider("Schedule Provider", "schedule-provider") {
- protected void doFillForm(SWTBotShell shell) {
- Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
- shell.bot().text(0).setText(this.uiName);
- Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), true);
- }
- };
+ return new ESBProvider("Schedule Provider", "schedule-provider");
}
public static ESBProvider providerSQL() {
return new ESBProvider("SQL Provider", "sql-provider");
Show replies by date