> If you're using EasyMock, this is a very easy way to mock a service. > Been using this for a long time. > >http://robvanmaris.jteam.nl/2008/04/22/test-driven-development-for-gwt-ui-code-with-asynchronous-rpc/
This is a great method. I was using EacyMocks Catpure method to do the same thing; Capture<AsyncCallback<SomeModel>> captureCallback = new Capture<AsyncCallback<SomeModel>>(); mockServiceAsync.getModel(and(capture(captureCallback), isA(AsyncCallback.class))); captureCallback.getValue().onsuccess(someModelInstance); Carl. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.