I was wondered what is the best way to test my GWT client logic which calls into my server and processes the results. I don't want to have to have a server running for these tests? That will come under my functional/performance testing. Is there a way to mock a server ?
Specifically some code like
String url = "localhost:8080/myApp/login";
RequestBuilder builder = new RequestBuilder( RequestBuilder.POST, url );
builder.sendRequest( "My data String", new MyResponseHandelr() );
How should I test this without there being a service available at the given URL, but instead have a means where by I can send specific data back to the client code under test?