import com.google.inject.AbstractModule;
-public class AAAWiring extends AbstractModule {
+public class AAAModule extends AbstractModule {
@Override
protected void configure() {
- install(new EncryptWiring());
- install(new CertWiring());
- install(new ShiroWiring());
+ install(new EncryptModule());
+ install(new CertModule());
+ install(new ShiroModule());
}
}
*
* @author Michael Vorburger.ch
*/
-public class CertWiring extends AbstractModule {
+public class CertModule extends AbstractModule {
@Override
protected void configure() {
import com.google.inject.AbstractModule;
-public class EncryptWiring extends AbstractModule {
+public class EncryptModule extends AbstractModule {
@Override
protected void configure() {
*
* @author Michael Vorburger.ch
*/
-public class ShiroWiring extends AbstractModule {
+public class ShiroModule extends AbstractModule {
// TODO private AAAShiroProvider aaaShiroProvider;
import org.opendaylight.mdsal.dom.api.DOMRpcService;
import org.opendaylight.mdsal.dom.api.DOMSchemaService;
import org.opendaylight.mdsal.dom.broker.DOMRpcRouter;
-import org.opendaylight.mdsal.simple.MdsalWiring;
+import org.opendaylight.mdsal.simple.MdsalModule;
import org.opendaylight.mdsal.simple.PingPong;
@SuppressFBWarnings("UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
-public class ControllerWiring extends AbstractCloseableModule {
+public class ControllerModule extends AbstractCloseableModule {
// TODO rename this to InMemoryDataStoreModule - because that's what most of this really is
// TODO re-use org.opendaylight.controller.md.sal.binding.impl.BindingBrokerWiring
@Override
protected void configureCloseables() {
- install(new MdsalWiring());
+ install(new MdsalModule());
// TODO this is just for early stage POC! switch to real CDS wiring here, eventually..
DataBrokerTestModule dataBrokerTestModule = new DataBrokerTestModule(true);
import org.opendaylight.infrautils.inject.guice.AutoWiringModule;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
-public class AlivenessMonitorWiring extends AutoWiringModule {
+public class AlivenessMonitorModule extends AutoWiringModule {
- public AlivenessMonitorWiring(GuiceClassPathBinder classPathBinder) {
+ public AlivenessMonitorModule(GuiceClassPathBinder classPathBinder) {
super(classPathBinder, "org.opendaylight.genius.alivenessmonitor");
}
}
import org.opendaylight.genius.datastoreutils.listeners.DataTreeEventCallbackRegistrar;
import org.opendaylight.genius.datastoreutils.listeners.internal.DataTreeEventCallbackRegistrarImpl;
-public class DatastoreUtilsWiring extends AbstractModule {
+public class DatastoreUtilsModule extends AbstractModule {
@Override
protected void configure() {
bind(DataTreeEventCallbackRegistrar.class).to(DataTreeEventCallbackRegistrarImpl.class);
public static void main(String[] args) {
GuiceClassPathBinder classPathBinder = new GuiceClassPathBinder("org.opendaylight");
- new ShellMain(new GeniusWiring(classPathBinder)).awaitShutdown();
+ new ShellMain(new GeniusModule(classPathBinder)).awaitShutdown();
}
}
package org.opendaylight.genius.simple;
import com.google.inject.AbstractModule;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.daexim.DataImportBootReady;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
-import org.opendaylight.infrautils.simple.InfraUtilsWiring;
-import org.opendaylight.openflowplugin.simple.OpenFlowPluginWiring;
+import org.opendaylight.infrautils.simple.InfraUtilsModule;
+import org.opendaylight.openflowplugin.simple.OpenFlowPluginModule;
import org.opendaylight.restconf.simple.RestConfModule;
-import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
+import org.opendaylight.serviceutils.simple.ServiceUtilsModule;
-public class GeniusWiring extends AbstractModule {
+public class GeniusModule extends AbstractModule {
private final GuiceClassPathBinder classPathBinder;
- public GeniusWiring(GuiceClassPathBinder classPathBinder) {
+ public GeniusModule(GuiceClassPathBinder classPathBinder) {
this.classPathBinder = classPathBinder;
}
install(new AnnotationsModule());
// Infrautils
- install(new InfraUtilsWiring());
+ install(new InfraUtilsModule());
// MD SAL
- install(new ControllerWiring());
+ install(new ControllerModule());
// ServiceUtils
- install(new ServiceUtilsWiring());
+ install(new ServiceUtilsModule());
// RESTCONF
install(new RestConfModule());
bind(DataImportBootReady.class).toInstance(new DataImportBootReady() {});
// OpenFlowPlugin
- install(new OpenFlowPluginWiring(classPathBinder));
+ install(new OpenFlowPluginModule(classPathBinder));
// Genius
- install(new MdsalUtilWiring());
- install(new LockManagerWiring());
- install(new IdManagerWiring());
- install(new AlivenessMonitorWiring(classPathBinder));
- install(new InterfaceManagerWiring());
- install(new ItmWiring());
- install(new DatastoreUtilsWiring());
+ install(new MdsalUtilModule());
+ install(new LockManagerModule());
+ install(new IdManagerModule());
+ install(new AlivenessMonitorModule(classPathBinder));
+ install(new InterfaceManagerModule());
+ install(new ItmModule());
+ install(new DatastoreUtilsModule());
// TODO install(new ResourceManagerWiring());
}
import org.opendaylight.genius.idmanager.IdManager;
import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService;
-public class IdManagerWiring extends AbstractModule {
+public class IdManagerModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.yangtools.yang.binding.DataContainer;
// TODO unify with org.opendaylight.genius.interfacemanager.test.InterfaceManagerTestModule
-public class InterfaceManagerWiring extends AbstractModule {
+public class InterfaceManagerModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.ItmConfigBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService;
-public class ItmWiring extends AbstractModule {
+public class ItmModule extends AbstractModule {
// TODO share code here with ItmTestModule instead of copy/pasting it from there!
import org.opendaylight.genius.lockmanager.impl.LockManagerServiceImpl;
import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.lockmanager.rev160413.LockManagerService;
-public class LockManagerWiring extends AbstractModule {
+public class LockManagerModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache;
import org.opendaylight.genius.utils.hwvtep.internal.HwvtepNodeHACacheImpl;
-public class MdsalUtilWiring extends AbstractModule {
+public class MdsalUtilModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl;
import org.opendaylight.infrautils.caches.standard.StandardCacheProvider;
-public class CachesWiring extends AbstractModule {
+public class CachesModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.infrautils.diagstatus.spi.NoClusterMemberInfo;
import org.opendaylight.infrautils.diagstatus.web.WebInitializer;
-public class DiagStatusWiring extends AbstractModule {
+public class DiagStatusModule extends AbstractModule {
- // TODO get DiagStatusWiringTest to pass without the 2nd bind() below...
+ // TODO get DiagStatusModuleTest to pass without the 2nd bind() below...
// maybe using https://github.com/google/guice/wiki/Multibindings ..
// but how to make it AUTOMATICALLY pickup all beans which ServiceStatusProvider?
// probably possible via https://github.com/google/guice/wiki/CustomInjections ?
package org.opendaylight.infrautils.simple;
import com.google.inject.AbstractModule;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.web.WebModule;
-public class InfraUtilsWiring extends AbstractModule {
+public class InfraUtilsModule extends AbstractModule {
@Override
protected void configure() {
- install(new WebWiring());
- install(new ReadyWiring());
- install(new DiagStatusWiring());
- install(new MetricsWiring());
- install(new CachesWiring());
- install(new JobCoordinatorWiring());
+ install(new WebModule());
+ install(new ReadyModule());
+ install(new DiagStatusModule());
+ install(new MetricsModule());
+ install(new CachesModule());
+ install(new JobCoordinatorModule());
}
}
import org.opendaylight.infrautils.jobcoordinator.JobCoordinator;
import org.opendaylight.infrautils.jobcoordinator.internal.JobCoordinatorImpl;
-public class JobCoordinatorWiring extends AbstractModule {
+public class JobCoordinatorModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.infrautils.metrics.MetricProvider;
import org.opendaylight.infrautils.metrics.internal.MetricProviderImpl;
-public class MetricsWiring extends AbstractModule {
+public class MetricsModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.infrautils.ready.SystemReadyMonitor;
import org.opendaylight.infrautils.ready.spi.SimpleSystemReadyMonitor;
-public class ReadyWiring extends AbstractModule implements PostFullSystemInjectionListener {
+public class ReadyModule extends AbstractModule implements PostFullSystemInjectionListener {
private final SimpleSystemReadyMonitor systemReadyMonitor = new SimpleSystemReadyMonitor();
*
* @author Michael Vorburger.ch
*/
-public class ShellTestWiring extends AbstractModule {
+public class ShellTestModule extends AbstractModule {
@Override
protected void configure() {
*
* @author Michael Vorburger.ch
*/
-public class WebWiring extends AbstractModule {
+public class WebModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.mdsal.singleton.dom.impl.DOMClusterSingletonServiceProviderImpl;
@SuppressWarnings("deprecation") // sure, but that's the point of this class...
-public class MdsalWiring extends AbstractModule {
+public class MdsalModule extends AbstractModule {
@Override
protected void configure() {
import org.opendaylight.netvirt.aclservice.listeners.AclNodeListener;
// TODO This is copy/pasted from org.opendaylight.netvirt.aclservice.tests.AclServiceModule, but should not be..
-public class AclServiceWiring extends AbstractModule {
+public class AclServiceModule extends AbstractModule {
@Override
protected void configure() {
public static void main(String[] args) {
GuiceClassPathBinder classPathBinder = new GuiceClassPathBinder("org.opendaylight");
- new Main(new NetvirtWiring(classPathBinder)).awaitShutdown();
+ new Main(new NetvirtModule(classPathBinder)).awaitShutdown();
}
}
*/
package org.opendaylight.netvirt.simple;
-import org.opendaylight.genius.simple.GeniusWiring;
+import org.opendaylight.genius.simple.GeniusModule;
import org.opendaylight.infrautils.inject.guice.AutoWiringModule;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
-public class NetvirtWiring extends AutoWiringModule {
+public class NetvirtModule extends AutoWiringModule {
- public NetvirtWiring(GuiceClassPathBinder classPathBinder) {
+ public NetvirtModule(GuiceClassPathBinder classPathBinder) {
super(classPathBinder);
}
@Override
protected void configure() {
- install(new GeniusWiring(classPathBinder));
+ install(new GeniusModule(classPathBinder));
- install(new AclServiceWiring());
+ install(new AclServiceModule());
}
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.app.forwardingrules.manager.config.rev160511.ForwardingRulesManagerConfig;
-public class OpenFlowPluginWiring extends AutoWiringModule {
+public class OpenFlowPluginModule extends AutoWiringModule {
- public OpenFlowPluginWiring(GuiceClassPathBinder classPathBinder) {
+ public OpenFlowPluginModule(GuiceClassPathBinder classPathBinder) {
super(classPathBinder, "org.opendaylight.openflowplugin");
}
import org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry;
import org.opendaylight.serviceutils.srm.impl.ServiceRecoveryRegistryImpl;
-public class ServiceRecoveryWiring extends AbstractModule {
+public class ServiceRecoveryModule extends AbstractModule {
@Override
protected void configure() {
import com.google.inject.AbstractModule;
-public class ServiceUtilsWiring extends AbstractModule {
+public class ServiceUtilsModule extends AbstractModule {
@Override
protected void configure() {
- install(new ServiceRecoveryWiring());
- install(new UpgradeWiring());
+ install(new ServiceRecoveryModule());
+ install(new UpgradeModule());
}
}
*
* @author Michael Vorburger.ch
*/
-public class UpgradeWiring extends AbstractModule {
+public class UpgradeModule extends AbstractModule {
@Override
protected void configure() {
import org.junit.Ignore;
import org.junit.Rule;
-import org.opendaylight.aaa.simple.AAAWiring;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.aaa.simple.AAAModule;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
@Ignore // TODO fix NullPointerException at org.opendaylight.aaa.cert.impl.DefaultMdsalSslData.createKeyStores :155
-public class AAAWiringTest extends AbstractSimpleDistributionTest {
+public class AAAModuleTest extends AbstractSimpleDistributionTest {
- public @Rule GuiceRule2 guice = new GuiceRule2(new AAAWiring(), new ControllerWiring(),
+ public @Rule GuiceRule2 guice = new GuiceRule2(new AAAModule(), new ControllerModule(),
// TODO new WebWiring(true), new ReferencesWiring(),
new AnnotationsModule());
package org.opendaylight.controller.simple.test;
import org.junit.Rule;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
-public class ControllerWiringTest extends AbstractSimpleDistributionTest {
+public class ControllerModuleTest extends AbstractSimpleDistributionTest {
- public @Rule GuiceRule2 guice = new GuiceRule2(ControllerWiring.class, AnnotationsModule.class);
+ public @Rule GuiceRule2 guice = new GuiceRule2(ControllerModule.class, AnnotationsModule.class);
}
import org.junit.Rule;
import org.opendaylight.genius.interfacemanager.interfaces.InterfaceManagerService;
import org.opendaylight.genius.itm.api.IITMProvider;
-import org.opendaylight.genius.simple.GeniusWiring;
+import org.opendaylight.genius.simple.GeniusModule;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
-import org.opendaylight.infrautils.simple.ShellTestWiring;
+import org.opendaylight.infrautils.simple.ShellTestModule;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
/**
private static final GuiceClassPathBinder CLASS_PATH_BINDER = new GuiceClassPathBinder("org.opendaylight");
- public @Rule GuiceRule2 guice = new GuiceRule2(new GeniusWiring(CLASS_PATH_BINDER), new ShellTestWiring());
+ public @Rule GuiceRule2 guice = new GuiceRule2(new GeniusModule(CLASS_PATH_BINDER), new ShellTestModule());
@Inject InterfaceManagerService interfaceManagerService;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.testutils.Partials;
import org.opendaylight.infrautils.testutils.TestHttpClient;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.web.WebModule;
/**
* Test for {@link DiagStatusServlet}.
private static final TestDiagStatusService SRVC = Partials.newPartial(TestDiagStatusService.class);
- public static class DiagStatusServletTestWiring extends AbstractModule {
+ public static class DiagStatusServletTestModule extends AbstractModule {
@Override
protected void configure() {
bind(DiagStatusService.class).toInstance(SRVC);
}
public @Rule GuiceRule2 guice = new GuiceRule2(
- WebWiring.class, DiagStatusServletTestWiring.class, AnnotationsModule.class);
+ WebModule.class, DiagStatusServletTestModule.class, AnnotationsModule.class);
@Inject WebServer webServer;
@Inject TestHttpClient http;
import org.opendaylight.infrautils.diagstatus.DiagStatusService;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
-import org.opendaylight.infrautils.simple.DiagStatusWiring;
-import org.opendaylight.infrautils.simple.ReadyWiring;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.simple.DiagStatusModule;
+import org.opendaylight.infrautils.simple.ReadyModule;
+import org.opendaylight.infrautils.web.WebModule;
/**
- * Unit test for {@link DiagStatusWiring}.
+ * Unit test for {@link DiagStatusModule}.
*
* @author Michael Vorburger.ch
*/
-public class DiagStatusWiringTest {
+public class DiagStatusModuleTest {
- public @Rule GuiceRule2 guice = new GuiceRule2(WebWiring.class, DiagStatusWiring.class, ReadyWiring.class,
+ public @Rule GuiceRule2 guice = new GuiceRule2(WebModule.class, DiagStatusModule.class, ReadyModule.class,
AnnotationsModule.class);
@Inject DiagStatusService diagStatusService;
import org.junit.Test;
import org.opendaylight.infrautils.inject.guice.testutils.AbstractGuiceJsr250Module;
import org.opendaylight.infrautils.simple.Main;
-import org.opendaylight.infrautils.simple.ReadyWiring;
+import org.opendaylight.infrautils.simple.ReadyModule;
/**
* Unit test for Main.
public static class TestModule extends AbstractGuiceJsr250Module {
@Override
protected void configureBindings() {
- install(new ReadyWiring());
+ install(new ReadyModule());
// bind(SomeInterfaceWithPostConstruct.class).to(SomeClassWithPostConstruct.class);
}
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.ready.SystemReadyMonitor;
-import org.opendaylight.infrautils.simple.ReadyWiring;
+import org.opendaylight.infrautils.simple.ReadyModule;
/**
- * Unit test for {@link ReadyWiring}.
+ * Unit test for {@link ReadyModule}.
*
* @author Michael Vorburger.ch
*/
-public class ReadyWiringTest {
+public class ReadyModuleTest {
public static class TestBean {
private final SystemReadyMonitor systemReadyMonitor;
}
}
- public @Rule GuiceRule2 guice = new GuiceRule2(ReadyWiring.class, AnnotationsModule.class);
+ public @Rule GuiceRule2 guice = new GuiceRule2(ReadyModule.class, AnnotationsModule.class);
@Inject TestBean testBean;
import org.junit.Rule;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
-import org.opendaylight.infrautils.simple.ShellTestWiring;
+import org.opendaylight.infrautils.simple.ShellTestModule;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
-import org.opendaylight.netvirt.simple.NetvirtWiring;
+import org.opendaylight.netvirt.simple.NetvirtModule;
/**
* Netvirt full distribution component test.
private static final GuiceClassPathBinder CLASS_PATH_BINDER = new GuiceClassPathBinder("org.opendaylight");
- public @Rule GuiceRule2 guice = new GuiceRule2(new NetvirtWiring(CLASS_PATH_BINDER), new ShellTestWiring());
+ public @Rule GuiceRule2 guice = new GuiceRule2(new NetvirtModule(CLASS_PATH_BINDER), new ShellTestModule());
}
import org.junit.Rule;
import org.junit.Test;
import org.opendaylight.aaa.web.WebServer;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
import org.opendaylight.infrautils.testutils.TestHttpClient;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.web.WebModule;
import org.opendaylight.neutron.simple.NeutronModule;
/**
public class NeutronModuleTest extends AbstractSimpleDistributionTest {
public @Rule GuiceRule2 guice = new GuiceRule2(
- NeutronModule.class, ControllerWiring.class, WebWiring.class, AnnotationsModule.class);
+ NeutronModule.class, ControllerModule.class, WebModule.class, AnnotationsModule.class);
@Inject WebServer webServer;
@Inject TestHttpClient http;
import javax.inject.Inject;
import org.junit.Rule;
import org.junit.Test;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
-import org.opendaylight.infrautils.simple.DiagStatusWiring;
-import org.opendaylight.infrautils.simple.ReadyWiring;
+import org.opendaylight.infrautils.simple.DiagStatusModule;
+import org.opendaylight.infrautils.simple.ReadyModule;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.web.WebModule;
import org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider;
-import org.opendaylight.openflowplugin.simple.OpenFlowPluginWiring;
-import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
+import org.opendaylight.openflowplugin.simple.OpenFlowPluginModule;
+import org.opendaylight.serviceutils.simple.ServiceUtilsModule;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.app.forwardingrules.manager.config.rev160511.ForwardingRulesManagerConfig;
-public class OpenFlowPluginWiringTest extends AbstractSimpleDistributionTest {
+public class OpenFlowPluginModuleTest extends AbstractSimpleDistributionTest {
private static final GuiceClassPathBinder CLASS_PATH_BINDER = new GuiceClassPathBinder("org.opendaylight");
- public @Rule GuiceRule2 guice = new GuiceRule2(new OpenFlowPluginWiring(CLASS_PATH_BINDER),
- new ServiceUtilsWiring(), new ControllerWiring(), new DiagStatusWiring(), new WebWiring(),
- new ReadyWiring(), new AnnotationsModule());
+ public @Rule GuiceRule2 guice = new GuiceRule2(new OpenFlowPluginModule(CLASS_PATH_BINDER),
+ new ServiceUtilsModule(), new ControllerModule(), new DiagStatusModule(), new WebModule(),
+ new ReadyModule(), new AnnotationsModule());
@Inject OpenFlowPluginProvider ofpProvider;
@Inject OpenflowProviderConfig ofpConfig;
import org.junit.Rule;
import org.junit.Test;
import org.opendaylight.aaa.web.WebServer;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
import org.opendaylight.infrautils.testutils.TestHttpClient;
-import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.infrautils.web.WebModule;
import org.opendaylight.restconf.simple.RestConfModule;
/**
public class RestConfModuleTest extends AbstractSimpleDistributionTest {
public @Rule GuiceRule2 guice = new GuiceRule2(
- RestConfModule.class, ControllerWiring.class, WebWiring.class, AnnotationsModule.class);
+ RestConfModule.class, ControllerModule.class, WebModule.class, AnnotationsModule.class);
@Inject WebServer webServer;
@Inject TestHttpClient http;
import javax.inject.Inject;
import org.junit.Rule;
-import org.opendaylight.controller.simple.ControllerWiring;
+import org.opendaylight.controller.simple.ControllerModule;
import org.opendaylight.infrautils.inject.guice.testutils.AnnotationsModule;
import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule2;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
-import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
+import org.opendaylight.serviceutils.simple.ServiceUtilsModule;
import org.opendaylight.serviceutils.upgrade.UpgradeState;
/**
*/
public class ServiceUtilsModuleTest extends AbstractSimpleDistributionTest {
- public @Rule GuiceRule2 guice = new GuiceRule2(ServiceUtilsWiring.class, ControllerWiring.class,
+ public @Rule GuiceRule2 guice = new GuiceRule2(ServiceUtilsModule.class, ControllerModule.class,
AnnotationsModule.class);
@Inject UpgradeState upgradeState;