Author: ljelinko
Date: 2011-11-25 05:06:33 -0500 (Fri, 25 Nov 2011)
New Revision: 36653
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/testcase/SWTTaskBasedTestCase.java
Log:
changed doAssertThat to accept all Matchers
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/testcase/SWTTaskBasedTestCase.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/testcase/SWTTaskBasedTestCase.java 2011-11-25
07:10:38 UTC (rev 36652)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/testcase/SWTTaskBasedTestCase.java 2011-11-25
10:06:33 UTC (rev 36653)
@@ -2,6 +2,7 @@
import static org.junit.Assert.assertThat;
+import org.hamcrest.Matcher;
import org.jboss.tools.portlet.ui.bot.matcher.SWTMatcher;
import org.jboss.tools.portlet.ui.bot.task.SWTBotAware;
import org.jboss.tools.portlet.ui.bot.task.SWTTask;
@@ -22,7 +23,7 @@
task.perform();
}
- protected <T> void doAssertThat(T actual, SWTMatcher<T> matcher){
+ protected <T> void doAssertThat(T actual, Matcher<T> matcher){
if (matcher instanceof SWTBotAware){
((SWTBotAware) matcher).setBot(bot);
}
Show replies by date