Re: RPC / Unit Testing Docs too sparse for me - help please

2011-04-07 Thread Thomas Broyer
The workflow is: 1. delay the test finish (delayTestFinish with some timeout) 2. when your async is done, finish the test (finishTest() or fail()) So, replace the timer by your AsyncCallback (probably calling finishTest() from onSuccess, after some assertXxx calls, and fail() from

RPC / Unit Testing Docs too sparse for me - help please

2011-04-07 Thread cri
I'm wanting to code tests for my RPC calls and am looking at the documentation at: http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html#DevGuideAsynchronousTesting. I'm just not getting it!! The example is (leaving out the comments): public void testTimer() { Timer timer = new

Re: RPC / Unit Testing Docs too sparse for me - help please

2011-04-07 Thread cri
Perfect. Nice and concise. Thanks On Apr 7, 11:32 am, Thomas Broyer t.bro...@gmail.com wrote: The workflow is:    1. delay the test finish (delayTestFinish with some timeout)    2. when your async is done, finish the test (finishTest() or fail()) So, replace the timer by your AsyncCallback