Author: yzhishko
Date: 2009-06-30 04:29:17 -0400 (Tue, 30 Jun 2009)
New Revision: 16273
Modified:
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
Log:
Some mistakes were corrected.
Modified:
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
===================================================================
---
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java 2009-06-30
08:28:17 UTC (rev 16272)
+++
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java 2009-06-30
08:29:17 UTC (rev 16273)
@@ -174,6 +174,7 @@
protected void createSeamRuntime(Properties runtimeSet){
bot.menu("Window").menu("Preferences").click();
SWTBotTree tree = bot.tree();
+ delay();
tree.expandNode("JBoss
Tools").expandNode("Web").select("Seam");
bot.button("Add").click();
bot.textWithLabel("Home
Folder:").setText(runtimeSet.getProperty("seamRuntimePath"));
@@ -205,12 +206,13 @@
Properties runtimeSet, String type){
bot.menu("File").menu("New").menu("Seam "
+unitType).click();
bot.textWithLabel("Seam
Project:").setText(runtimeSet.getProperty("testProjectName")+ type);
- if (unitType == "Entity") {
+ if ("Entity".equals(unitType)) {
bot.textWithLabel("Seam entity class
name:").setText("seam"+unitType);
} else {
bot.textWithLabel("Seam component
name:").setText("seam"+unitType);
}
bot.button("Finish").click();
+ delay();
}
/**Deletes any Seam project. */
@@ -258,8 +260,11 @@
}
@Override
- protected void activePerspective() {
-
+ protected void activePerspective() {
+ if (!bot.perspectiveByLabel("Seam").isActive()) {
+ bot.perspectiveByLabel("Seam").activate();
}
+
+ }
}
Show replies by date