On the server side it's good practice to move all your code from the
servlet to another injected implementation:
class MyRPCService extends RemoteService implements IMyRPCService {
@Inject MyRPCServiceHandler handler;
public boolean yourRequest(String yourParams){
// do auth
return handler.yourRequest(yourParams);
}
That way you are able to test outside of the servlet container.
Joe
On Aug 28, 6:27 am, Gary S <[email protected]> wrote:
> I want to test a RemoteService, its Async and an RPCServlet with an
> ordinary TestCase that calls the Servlet. Is there an example of how
> to do this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---