*/
public class FailingRequestBuilderTest extends RpcTestBase {
public void testBasics() throws RequestException {
final boolean[] callbackCalled = new boolean[] {false};
RequestBuilder rb = new FailingRequestBuilder(new SerializationException(),
new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
assertFalse(callbackCalled[0]);
callbackCalled[0] = true;
}
@Override
public void onSuccess(Void result) {
fail("expected this to fail");
}
});
rb.send();
}