has someone here experiences with GWT SyncProxy?
I am trying to test an asynchronous rpc, but the code under onFailure and onSuccess is not tested. Unfortunately there is no error log, but maybe someone can help me. The example is from this page: http://code.google.com/p/gwt-syncproxy/
public class Test extends TestCase { private static GreetingServiceAsync rpcServiceAsync = (GreetingServiceAsync) SyncProxy.newProxyInstance(GreetingServiceAsync.class, "http://127.0.0.1:8888/GreetingTest.html?gwt.codesvr=127.0.0.1:9997", "greet"); public void test() { rpcServiceAsync.greetServer("SyncProxy", new AsyncCallback<String>(){ public void onFailure(Throwable caught) { System.out.println("bad"); } public void onSuccess(String result) { System.out.println("good"); } }); }}
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lVhCX0UhQ6YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment