From 2b3f7f4cfd4d61462a4f9f07ce09a3ff3d5c029e Mon Sep 17 00:00:00 2001 From: "fabio.sinibaldi" Date: Tue, 18 Jun 2019 12:48:19 +0000 Subject: [PATCH] Fix Base Test : register EvinronmentConfiguration Impl git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-publishing/gCat-Feeder-Suite@179897 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/data/publishing/gCatFeeder/service/BaseTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gCat-Feeder/src/test/java/org/gcube/data/publishing/gCatFeeder/service/BaseTest.java b/gCat-Feeder/src/test/java/org/gcube/data/publishing/gCatFeeder/service/BaseTest.java index 8f829a4..766585b 100644 --- a/gCat-Feeder/src/test/java/org/gcube/data/publishing/gCatFeeder/service/BaseTest.java +++ b/gCat-Feeder/src/test/java/org/gcube/data/publishing/gCatFeeder/service/BaseTest.java @@ -9,6 +9,7 @@ import javax.ws.rs.core.Application; import org.gcube.common.authorization.library.provider.SecurityTokenProvider; import org.gcube.common.scope.api.ScopeProvider; +import org.gcube.data.publishing.gCatFeeder.model.EnvironmentConfiguration; import org.gcube.data.publishing.gCatFeeder.service.engine.CatalogueControllersManager; import org.gcube.data.publishing.gCatFeeder.service.engine.CollectorsManager; import org.gcube.data.publishing.gCatFeeder.service.engine.ConnectionManager; @@ -22,6 +23,7 @@ import org.gcube.data.publishing.gCatFeeder.service.engine.impl.CatalogueControl import org.gcube.data.publishing.gCatFeeder.service.engine.impl.CollectorsManagerImpl; import org.gcube.data.publishing.gCatFeeder.service.engine.impl.ExecutionManagerImpl; import org.gcube.data.publishing.gCatFeeder.service.engine.impl.FeederEngineImpl; +import org.gcube.data.publishing.gCatFeeder.service.engine.impl.LiveEnvironmentConfiguration; import org.gcube.data.publishing.gCatFeeder.service.engine.impl.LocalConfigurationImpl; import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.ConnectionManagerImpl; import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.PersistenceManagerImpl; @@ -66,7 +68,7 @@ public class BaseTest extends JerseyTest{ bind(PersistenceManagerImpl.class).to(PersistenceManager.class); bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class); bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class); - + bind(LiveEnvironmentConfiguration.class).to(EnvironmentConfiguration.class); //Mockup bind(InfrastructureMockup.class).to(Infrastructure.class); } @@ -85,6 +87,7 @@ public class BaseTest extends JerseyTest{ bind(PersistenceManagerImpl.class).to(PersistenceManager.class); bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class); bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class); + bind(LiveEnvironmentConfiguration.class).to(EnvironmentConfiguration.class); // Mockups bind(InfrastructureMockup.class).to(Infrastructure.class); bind(StorageMockup.class).to(Storage.class);