Author: jpeterka
Date: 2012-08-07 09:25:49 -0400 (Tue, 07 Aug 2012)
New Revision: 42880
Modified:
trunk/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java
Log:
Dummy ui bot test improved
Modified:
trunk/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java
===================================================================
---
trunk/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java 2012-08-07
12:59:20 UTC (rev 42879)
+++
trunk/tests/tests/org.jboss.tools.dummy.ui.bot.test/src/org/jboss/tools/dummy/ui/bot/test/DummyTest.java 2012-08-07
13:25:49 UTC (rev 42880)
@@ -1,6 +1,8 @@
package org.jboss.tools.dummy.ui.bot.test;
+import static org.junit.Assert.*;
+
import java.io.OutputStreamWriter;
import org.apache.log4j.ConsoleAppender;
@@ -33,6 +35,9 @@
log.addAppender(ca);
SWTWorkbenchBot bot = new SWTWorkbenchBot();
- log.info("Shell with title \"" + bot.shells()[0].getText() +
"\" found");
+ bot.menu("Window").menu("Preferences").click();
+ assertEquals("Preferences",bot.activeShell().getText());
+ bot.activeShell().close();
+ bot.closeAllShells();
}
}
Show replies by date