com.gwtplatform.tester
Class TestDispatchService

java.lang.Object
  extended by com.gwtplatform.tester.TestDispatchService
All Implemented Interfaces:
RemoteService, DispatchService

public class TestDispatchService
extends Object
implements DispatchService

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

Author:
Brendan Doherty

Constructor Summary
TestDispatchService(Dispatch dispatch)
           
 
Method Summary
 Result execute(String cookieSentByRPC, Action<?> action)
           
 void undo(String cookieSentByRPC, Action<Result> action, Result result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDispatchService

@Inject
public TestDispatchService(Dispatch dispatch)
Method Detail

execute

public Result execute(String cookieSentByRPC,
                      Action<?> action)
               throws ActionException,
                      ServiceException
Specified by:
execute in interface DispatchService
Throws:
ActionException
ServiceException

undo

public void undo(String cookieSentByRPC,
                 Action<Result> action,
                 Result result)
          throws ActionException,
                 ServiceException
Specified by:
undo in interface DispatchService
Throws:
ActionException
ServiceException


Copyright © 2010-2011 ArcBees. All Rights Reserved.