Skip to content

Commit

Permalink
#4682 PlanB State Store
Browse files Browse the repository at this point in the history
  • Loading branch information
stroomdev66 committed Jan 10, 2025
1 parent 6df4d1b commit 93f6756
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions stroom-app/src/test/java/stroom/test/MockServiceModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import stroom.meta.mock.MockMetaModule;
import stroom.node.mock.MockNodeServiceModule;
import stroom.pipeline.xmlschema.MockXmlSchemaModule;
import stroom.planb.impl.MockPlanBModule;
import stroom.processor.impl.MockProcessorModule;
import stroom.resource.impl.MockResourceModule;
import stroom.security.api.ContentPackUserService;
Expand Down Expand Up @@ -91,6 +92,7 @@ protected void configure() {
install(new MockServletModule());
install(new MockXmlSchemaModule());
install(new MockStateModule());
install(new MockPlanBModule());

bind(ContentPackUserService.class).to(MockSecurityContext.class);
bind(HttpClientFactory.class).to(BasicHttpClientFactory.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import stroom.explorer.api.ExplorerActionHandler;
import stroom.importexport.api.ImportExportActionHandler;
import stroom.pipeline.xsltfunctions.PlanBLookup;
import stroom.planb.impl.data.FileTransferClient;
import stroom.planb.impl.pipeline.PlanBElementModule;
import stroom.planb.impl.pipeline.PlanBLookupImpl;
import stroom.planb.impl.pipeline.StateProviderImpl;
Expand All @@ -13,15 +14,18 @@
import stroom.util.shared.Clearable;

import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.util.Providers;

public class MockStateModule extends AbstractModule {
public class MockPlanBModule extends AbstractModule {

@Override
protected void configure() {
install(new PlanBElementModule());

bind(PlanBLookup.class).to(PlanBLookupImpl.class);
bind(PlanBLookup.class).toProvider(Providers.of(null));//PlanBLookupImpl.class);
GuiceUtil.buildMultiBinder(binder(), StateProvider.class).addBinding(StateProviderImpl.class);
bind(FileTransferClient.class).toProvider(Providers.of(null));

// // Services
//
Expand Down

0 comments on commit 93f6756

Please sign in to comment.