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
This commit is contained in:
parent
8f60f5a0f3
commit
2b3f7f4cfd
|
@ -9,6 +9,7 @@ import javax.ws.rs.core.Application;
|
||||||
|
|
||||||
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
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.CatalogueControllersManager;
|
||||||
import org.gcube.data.publishing.gCatFeeder.service.engine.CollectorsManager;
|
import org.gcube.data.publishing.gCatFeeder.service.engine.CollectorsManager;
|
||||||
import org.gcube.data.publishing.gCatFeeder.service.engine.ConnectionManager;
|
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.CollectorsManagerImpl;
|
||||||
import org.gcube.data.publishing.gCatFeeder.service.engine.impl.ExecutionManagerImpl;
|
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.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.LocalConfigurationImpl;
|
||||||
import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.ConnectionManagerImpl;
|
import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.ConnectionManagerImpl;
|
||||||
import org.gcube.data.publishing.gCatFeeder.service.engine.impl.persistence.PersistenceManagerImpl;
|
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(PersistenceManagerImpl.class).to(PersistenceManager.class);
|
||||||
bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class);
|
bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class);
|
||||||
bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class);
|
bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class);
|
||||||
|
bind(LiveEnvironmentConfiguration.class).to(EnvironmentConfiguration.class);
|
||||||
//Mockup
|
//Mockup
|
||||||
bind(InfrastructureMockup.class).to(Infrastructure.class);
|
bind(InfrastructureMockup.class).to(Infrastructure.class);
|
||||||
}
|
}
|
||||||
|
@ -85,6 +87,7 @@ public class BaseTest extends JerseyTest{
|
||||||
bind(PersistenceManagerImpl.class).to(PersistenceManager.class);
|
bind(PersistenceManagerImpl.class).to(PersistenceManager.class);
|
||||||
bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class);
|
bind(ConnectionManagerImpl.class).to(ConnectionManager.class).in(Singleton.class);
|
||||||
bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class);
|
bind(LocalConfigurationImpl.class).to(LocalConfiguration.class).in(Singleton.class);
|
||||||
|
bind(LiveEnvironmentConfiguration.class).to(EnvironmentConfiguration.class);
|
||||||
// Mockups
|
// Mockups
|
||||||
bind(InfrastructureMockup.class).to(Infrastructure.class);
|
bind(InfrastructureMockup.class).to(Infrastructure.class);
|
||||||
bind(StorageMockup.class).to(Storage.class);
|
bind(StorageMockup.class).to(Storage.class);
|
||||||
|
|
Loading…
Reference in New Issue