X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Ftoaster-it%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsample%2Ftoaster%2Fit%2FToasterTest.java;h=9bc905c3f412dbdff456b33c85e3f9799d61eab4;hb=c18f35dc4659c301354e25aca4d41178201975f1;hp=15beb2deabd5c9c4ac028f31ff078840548cd9af;hpb=842ae4586043f7a230ab701696e4e4f0b7ff49f4;p=controller.git diff --git a/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java b/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java index 15beb2deab..9bc905c3f4 100644 --- a/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java +++ b/opendaylight/md-sal/samples/toaster-it/src/test/java/org/opendaylight/controller/sample/toaster/it/ToasterTest.java @@ -21,6 +21,7 @@ import org.opendaylight.controller.mdsal.it.base.AbstractMdsalTestBase; import org.opendaylight.controller.sample.kitchen.api.EggsType; import org.opendaylight.controller.sample.kitchen.api.KitchenService; import org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.HashBrown; +import org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToasterService; import org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.WhiteBread; import org.ops4j.pax.exam.junit.PaxExam; import org.ops4j.pax.exam.options.MavenUrlReference; @@ -31,11 +32,14 @@ public class ToasterTest extends AbstractMdsalTestBase { @Inject @Filter(timeout = 60 * 1000) KitchenService kitchenService; + @Inject + @Filter(timeout = 60 * 1000) + ToasterService toasterService; @Override public MavenUrlReference getFeatureRepo() { - return maven().groupId("org.opendaylight.controller").artifactId("features-mdsal").classifier("features") - .type("xml").versionAsInProject(); + return maven().groupId("org.opendaylight.controller").artifactId("features-controller-experimental") + .classifier("features").type("xml").versionAsInProject(); } @Override @@ -55,8 +59,8 @@ public class ToasterTest extends AbstractMdsalTestBase { boolean success = true; // Make toasts using OSGi service - success &= kitchenService.makeBreakfast(EggsType.SCRAMBLED, HashBrown.class, 4).get().isSuccessful(); - success &= kitchenService.makeBreakfast(EggsType.POACHED, WhiteBread.class, 8).get().isSuccessful(); + success &= kitchenService.makeBreakfast(EggsType.SCRAMBLED, HashBrown.VALUE, 4).get().isSuccessful(); + success &= kitchenService.makeBreakfast(EggsType.POACHED, WhiteBread.VALUE, 8).get().isSuccessful(); assertTrue("Not all breakfasts succeeded", success);