Author: rhopp
Date: 2012-07-24 08:10:07 -0400 (Tue, 24 Jul 2012)
New Revision: 42689
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
Log:
Modified the way preferences are open.
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
===================================================================
---
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-07-24
06:32:19 UTC (rev 42688)
+++
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-07-24
12:10:07 UTC (rev 42689)
@@ -8,12 +8,14 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
import org.jboss.tools.ui.bot.ext.SWTFormsBotExt;
+import org.jboss.tools.ui.bot.ext.SWTOpenExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.condition.NonSystemJobRunsCondition;
import org.jboss.tools.ui.bot.ext.condition.TaskDuration;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem.Preference;
import org.jboss.tools.ui.bot.ext.parts.SWTBotFormTextExt;
import org.jboss.tools.ui.bot.ext.parts.SWTBotTwistie;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -32,9 +34,11 @@
public static void setup() throws FileNotFoundException{
util.closeAllEditors(false);
util.closeAllViews();
- bot.menu("Window").menu("Preferences").click();
+ SWTOpenExt open = new SWTOpenExt(bot);
+ open.preferenceOpen(Preference.create("Maven"));
+ /*bot.menu("Window").menu("Preferences").click();
bot.waitForShell("Preferences");
- bot.tree().getTreeItem("Maven").select();
+ bot.tree().getTreeItem("Maven").select();*/
bot.checkBox("Download repository index updates on startup").deselect();
bot.clickButton("OK");
bot.menu("Help").menu(IDELabel.JBossCentralEditor.JBOSS_CENTRAL).click();
Show replies by date