Status: Accepted
Owner: HamletDRC
Labels: Type-Enhancement Priority-Medium
New issue 5 by HamletDRC: Support asynchronous test coordination similar to
how GWTTestCase does
http://code.google.com/p/jconch/issues/detail?id=5
I'd like a feature for asynchronous test coordination similar to how
GWTTestCase works.
In particular, I'd like this test case to pass:
@Test(timeout=1000)
public void testCoordination() {
final TestCoordinator coord = new TestCoordinator();
MyComponent component = new MyComponent();
component.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
Assert.assertNotNull(e.getSource());
Assert.assertEquals("click", e.getActionCommand());
coord.finishTest();
}
});
component.click();
coord.delayTestFinish();
component.click();
coord.delayTestFinish(1000);
component.click();
coord.delayTestFinish(1, TimeUnit.SECONDS);
}
I have a patch for your review.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings