Hi all,
I try to test a filter for table rows. Therefore I need to test that a HasTextCondition fails.
First I tried a NotCondition:
ui.assertThat(new NotCondition(new HasTextCondition(new TableCellLocator(13, "Fond").in(new ViewLocator("de.patronas.opus.client.rcp.trading.orderbook.view.orderbookView")), "3")));
This results in a UnsopportedMethod exception:
java.lang.RuntimeException: unsupported method - should call testUI(IUIContext) instead
at com.windowtester.runtime.condition.HasTextCondition.test(HasTextCondition.java:46)
at com.windowtester.internal.runtime.condition.NotCondition.test(NotCondition.java:17)
at com.windowtester.internal.runtime.condition.ConditionMonitor.test(ConditionMonitor.java:177)
at com.windowtester.runtime.swt.internal.UIContextSWT.wait(UIContextSWT.java:809)
at com.windowtester.runtime.swt.internal.UIContextSWT.wait(UIContextSWT.java:795)
at com.windowtester.runtime.internal.AssertionHandler.waitFor(AssertionHandler.java:62)
at com.windowtester.runtime.internal.AssertionHandler.assertThat(AssertionHandler.java:30)
at com.windowtester.internal.runtime.UIContextCommon.assertThat(UIContextCommon.java:225)
at de.patronas.opus.client.rcp.test.orderbook_test.OrderbookTest.testOrderbookTest(OrderbookTest.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:130)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:151)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:40)
Is there another way to test that a table row is absent without testing on a waittimeout exception?
Greets
Balle