use of org.activityinfo.ui.client.local.command.LocalDispatcher in project activityinfo by bedatadriven.
the class LocalHandlerTestCase method setUser.
protected void setUser(int userId) {
AuthenticationModuleStub.setUserId(userId);
remoteDispatcher = new RemoteDispatcherStub(servlet);
Injector clientSideInjector = Guice.createInjector(new LocalModuleStub(AuthenticationModuleStub.getCurrentUser(), localDatabase, remoteDispatcher));
localDispatcher = clientSideInjector.getInstance(LocalDispatcher.class);
synchronizer = clientSideInjector.getInstance(SyncPipeline.class);
installer = clientSideInjector.getInstance(InstallPipeline.class);
syncHistoryTable = clientSideInjector.getInstance(SyncHistoryTable.class);
}
Aggregations