Saturday, September 29, 2012

Testing an asynchronous rpc with GWT SyncProxy

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:

public class Test extends TestCase {  private static GreetingServiceAsync rpcServiceAsync =            (GreetingServiceAsync) SyncProxy.newProxyInstance(GreetingServiceAsync.class,          "", "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
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment