Author: ljelinko
Date: 2012-05-24 06:21:04 -0400 (Thu, 24 May 2012)
New Revision: 41347
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/ServerRuntimesPreferencesDialog.java
Log:
Fixed paths and runtimes removal.
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-05-24
09:59:58 UTC (rev 41346)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-05-24
10:21:04 UTC (rev 41347)
@@ -10,7 +10,6 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
import org.jboss.tools.runtime.core.model.RuntimePath;
import org.jboss.tools.runtime.ui.RuntimeUIActivator;
-import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
import org.jboss.tools.ui.bot.ext.condition.TaskDuration;
@@ -45,7 +44,8 @@
SWTBot bot = SWTBotFactory.getBot();
SWTBotTable table = bot.table();
- for (int i = 0; i < table.rowCount(); i++){
+ int pathsNumber = table.rowCount();
+ for (int i = 0; i < pathsNumber; i++){
table.click(0, 0);
bot.button("Remove").click();
}
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java 2012-05-24
09:59:58 UTC (rev 41346)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java 2012-05-24
10:21:04 UTC (rev 41347)
@@ -35,7 +35,8 @@
SWTBot bot = SWTBotFactory.getBot();
SWTBotTable table = bot.table();
- for (int i = 0; i < table.rowCount(); i++){
+ int runtimesNumber = table.rowCount();
+ for (int i = 0; i < runtimesNumber; i++){
table.click(0, 0);
bot.button("Remove").click();
KeyboardFactory.getAWTKeyboard().pressShortcut(Keystrokes.RIGHT, Keystrokes.CR,
Keystrokes.LF);
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/ServerRuntimesPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/ServerRuntimesPreferencesDialog.java 2012-05-24
09:59:58 UTC (rev 41346)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/ServerRuntimesPreferencesDialog.java 2012-05-24
10:21:04 UTC (rev 41347)
@@ -34,7 +34,8 @@
SWTBot bot = SWTBotFactory.getBot();
SWTBotTable table = bot.table();
- for (int i = 0; i < table.rowCount(); i++){
+ int runtimesNumber = table.rowCount();
+ for (int i = 0; i < runtimesNumber; i++){
table.click(0, 0);
bot.button("Remove").click();
KeyboardFactory.getAWTKeyboard().pressShortcut(Keystrokes.RIGHT, Keystrokes.CR,
Keystrokes.LF);