Search in sources :

Example 1 with SyncHistoryTable

use of org.activityinfo.ui.client.local.sync.SyncHistoryTable 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);
}
Also used : LocalDispatcher(org.activityinfo.ui.client.local.command.LocalDispatcher) InstallPipeline(org.activityinfo.ui.client.local.sync.pipeline.InstallPipeline) Injector(com.google.inject.Injector) SyncHistoryTable(org.activityinfo.ui.client.local.sync.SyncHistoryTable) LocalModuleStub(org.activityinfo.ui.client.local.LocalModuleStub) SyncPipeline(org.activityinfo.ui.client.local.sync.pipeline.SyncPipeline)

Aggregations

Injector (com.google.inject.Injector)1 LocalModuleStub (org.activityinfo.ui.client.local.LocalModuleStub)1 LocalDispatcher (org.activityinfo.ui.client.local.command.LocalDispatcher)1 SyncHistoryTable (org.activityinfo.ui.client.local.sync.SyncHistoryTable)1 InstallPipeline (org.activityinfo.ui.client.local.sync.pipeline.InstallPipeline)1 SyncPipeline (org.activityinfo.ui.client.local.sync.pipeline.SyncPipeline)1