On Friday, March 18, 2011 6:38:11 PM UTC+1, Kathiravan Tamilvanan wrote:
>
> David,
>
> That was a good start for me. But i am getting few issues with the test,
>
> req.designRequest().findDesign(1L).fire(new Receiver<DesignProxy>()
> {
>
> @Override
> public void onSuccess(DesignProxy response)
> {
> System.out.println("Response " + response);
> assertTrue(false);
> finishTest();
> }
> });
>
>
> This is what i have tried. It seemed like it never went into the onSuccess
> method. Its always a PASS when i run it.
>
Are you calling delayTestFinish too?
(note however that InProcessRequestTransport is synchronous, if you're
running your test as a "Jre test" rather than a "GWT test")
> I also read the comment about the finishTestAndReset but i am not quite
> sure whether i should implement the same for my requestfactory.
>
This is because the SimpleFoo "service" is stateful, so you have to clean it
up before passing to the next test.
--
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.