com.gwtplatform.tester
Class TestDispatchAsync

java.lang.Object
  extended by com.gwtplatform.tester.TestDispatchAsync
All Implemented Interfaces:
DispatchAsync

public class TestDispatchAsync
extends Object
implements DispatchAsync

This class is an implementation of DispatchAsync for use with test cases that configure guice using a MockHandlerModule.

Author:
Brendan Doherty

Constructor Summary
TestDispatchAsync(TestDispatchService service, Injector injector)
           
 
Method Summary
<A extends Action<R>,R extends Result>
DispatchRequest
execute(A action, AsyncCallback<R> callback)
           
<A extends Action<R>,R extends Result>
DispatchRequest
undo(A action, R result, AsyncCallback<Void> callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDispatchAsync

@Inject
public TestDispatchAsync(TestDispatchService service,
                                Injector injector)
Method Detail

execute

public <A extends Action<R>,R extends Result> DispatchRequest execute(A action,
                                                                      AsyncCallback<R> callback)
Specified by:
execute in interface DispatchAsync

undo

public <A extends Action<R>,R extends Result> DispatchRequest undo(A action,
                                                                   R result,
                                                                   AsyncCallback<Void> callback)
Specified by:
undo in interface DispatchAsync


Copyright © 2010-2011 ArcBees. All Rights Reserved.