Thanks, the trouble I'd have is that the FormPanel exists within my
Composite component

 final ProductDetailsView productDetailsView = new
ProductDetailsView();

which is client code.  That is, I can't put JUnit directives in
there.  Does that make sense?  The form panel within there already has
a submit complete handler associated with it, so I'm not sure if I can
override that from my test case.  Ultimately, I just want to see if
the form submission resulted in a non-200 response.

Thanks, - Dave


On Dec 1, 9:47 am, Thomas Broyer <[email protected]> wrote:
> Just like you're "waiting" for getNode to get back, but here using events:
> add a FormPanel.SubmitCompleteHandler to your FormPanel and only call
> finishTest from there. The handler will be called when the server responds
> to the form submission, so either it works and you can have asserts and
> then finishTest() (in the normal case), or it somehow breaks (there's
> little to no reason, but who knows) and your test will fail in timeout
> (because finishTest will never be called before the timeout expires).

-- 
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