Revision: 8205
Author: gwt.mirror...@gmail.com
Date: Tue May 25 08:12:25 2010
Log: Fixes a bug with the path to allow the default JUnit test created by WebAppCreator to invoke the service. GWT.getModuleBaseURL necessarily returns a url with a trailing slash. Adding an additional slash makes the url invalid.

Review at http://gwt-code-reviews.appspot.com/552801

Review by: r...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=8205

Modified:
 /branches/2.1/user/src/com/google/gwt/user/tools/JUnitClassTemplate.javasrc

=======================================
--- /branches/2.1/user/src/com/google/gwt/user/tools/JUnitClassTemplate.javasrc Wed Jan 6 12:18:02 2010 +++ /branches/2.1/user/src/com/google/gwt/user/tools/JUnitClassTemplate.javasrc Tue May 25 08:12:25 2010
@@ -38,7 +38,7 @@
     // Create the service that we will test.
GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
     ServiceDefTarget target = (ServiceDefTarget) greetingService;
- target.setServiceEntryPoint(GWT.getModuleBaseURL() + "/@renameTo/greet"); + target.setServiceEntryPoint(GWT.getModuleBaseURL() + "@renameTo/greet");

// Since RPC calls are asynchronous, we will need to wait for a response // after this test method returns. This line tells the test runner to wait

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to