import org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker;
import org.opendaylight.openflowplugin.impl.PingPongDataBroker;
import org.opendaylight.openflowplugin.impl.configuration.ConfigurationServiceFactoryImpl;
-import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketOutput;
protected void configure() {
super.configure(); // this does the auto-wiring
- install(new ServiceUtilsWiring());
-
- // TODO remove the remaining manual wiring as soon as these service have switched like https://git.opendaylight.org/gerrit/#/c/77386/
-
// TODO remove NoPacketProcessingService and replace by real PacketProcessingServiceImpl
bind(PacketProcessingService.class).to(NoPacketProcessingService.class);
*/
public class GuiceRuleLambdaTest {
+ @SuppressWarnings("BindingToUnqualifiedCommonType")
public @Rule GuiceRule guice = new GuiceRule2(
binder -> binder.bind(String.class).toInstance("hello, world"),
new AnnotationsModule());
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
import org.opendaylight.infrautils.web.WebWiring;
import org.opendaylight.openflowplugin.simple.OpenFlowPluginWiring;
+import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
public class OpenFlowPluginWiringTest extends AbstractSimpleDistributionTest {
private static final GuiceClassPathBinder CLASS_PATH_BINDER = new GuiceClassPathBinder("org.opendaylight");
- public @Rule GuiceRule guice = new GuiceRule(new OpenFlowPluginWiring(CLASS_PATH_BINDER), new ControllerWiring(),
- new DiagStatusWiring(), new WebWiring(), new ReadyWiring(), new AnnotationsModule());
+ public @Rule GuiceRule guice = new GuiceRule(new OpenFlowPluginWiring(CLASS_PATH_BINDER), new ServiceUtilsWiring(),
+ new ControllerWiring(), new DiagStatusWiring(), new WebWiring(), new ReadyWiring(),
+ new AnnotationsModule());
}