Author: jjankovi
Date: 2012-05-25 03:00:55 -0400 (Fri, 25 May 2012)
New Revision: 41405
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/explorer/ProjectArchivesExplorer.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java
Log:
fixed the problem with finding SWTBotTree
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/explorer/ProjectArchivesExplorer.java
===================================================================
---
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/explorer/ProjectArchivesExplorer.java 2012-05-25
07:00:24 UTC (rev 41404)
+++
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/explorer/ProjectArchivesExplorer.java 2012-05-25
07:00:55 UTC (rev 41405)
@@ -83,7 +83,9 @@
public boolean itemExists(String... path) {
try {
SWTBotTreeItem ti = explorer;
+ explorer.collapse();
for (String pathItem : path) {
+ ti.expand();
ti = ti.getNode(pathItem);
}
return true;
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java
===================================================================
---
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java 2012-05-25
07:00:24 UTC (rev 41404)
+++
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/view/ProjectArchivesView.java 2012-05-25
07:00:55 UTC (rev 41405)
@@ -87,6 +87,7 @@
public boolean itemExists(String... path) {
try {
+ bot.tree(0).getTreeItem(path[0]).collapse();
TreeHelper.expandNode(bot, path);
return true;
} catch (WidgetNotFoundException exc) {
Show replies by date