If you use a "plain JUnit" test, you'd be using InProcessRequestTransport, 
which is synchronous, so there's no possible race condition.

If you use a GWTTestCase, then you'd likely try to find the items from 
within the Receiver's onSuccess for the first call that inserts them (and 
you could do that in the above case too, so that you can run the same code 
in both "plain JUnit" and GWTTestCase/JUnitShell). The only issue here is 
then reaching the test timeout, so you have to fix a high-enough value.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to