public class TestDispatchAsync extends Object implements DispatchAsync
DispatchAsync
for use with test
cases that configure guice using a MockHandlerModule
.Constructor and Description |
---|
TestDispatchAsync(TestDispatchService service,
Injector injector) |
Modifier and Type | Method and Description |
---|---|
<A extends Action<R>,R extends Result> |
execute(A action,
AsyncCallback<R> callback)
This method is called client-side whenever a new action is executed.
|
<A extends Action<R>,R extends Result> |
undo(A action,
R result,
AsyncCallback<Void> callback)
This method is called client-side whenever a previous executed action need to be undone.
|
@Inject public TestDispatchAsync(TestDispatchService service, Injector injector)
public <A extends Action<R>,R extends Result> DispatchRequest execute(A action, AsyncCallback<R> callback)
DispatchAsync
public <A extends Action<R>,R extends Result> DispatchRequest undo(A action, R result, AsyncCallback<Void> callback)
DispatchAsync
Copyright © 2010-2014 ArcBees. All Rights Reserved.