Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best practice for GWT testing?

823838Jul 14 2011 — edited Jul 14 2011
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2011
Added on Jul 14 2011
1 comment
248 views