Issue 5 in jconch: Support asynchronous test coordination similar to how GWTTestCase does

1 view
Skip to first unread message

codesite...@google.com

unread,
Dec 14, 2009, 3:09:42 PM12/14/09
to jco...@googlegroups.com
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

codesite...@google.com

unread,
Dec 14, 2009, 3:30:34 PM12/14/09
to jco...@googlegroups.com

Comment #1 on issue 5 by HamletDRC: Support asynchronous test coordination
ack, didn't quite get enough time to execute the examples after I merged my
code into
jconch... but here is the patch. It should all work.

Attachments:
coordpatch.patch 14.8 KB

codesite...@google.com

unread,
Dec 15, 2009, 8:31:58 AM12/15/09
to jco...@googlegroups.com

Comment #2 on issue 5 by HamletDRC: Support asynchronous test coordination
Here is a patch with passing unit tests and passing example.

Attachments:
coordpatch2.patch 14.9 KB

codesite...@google.com

unread,
Dec 18, 2009, 2:42:31 PM12/18/09
to jco...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 5 by HamletDRC: Support asynchronous test coordination

marked fixed. maybe someone else should run example to double check?

Reply all
Reply to author
Forward
0 new messages