X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fremote%2Frpc%2Fregistry%2FActionRegistryTest.java;h=867d9a8700db550432a446121090e4c5560ae7c1;hb=1d0370feb32b84119bf4c570b9e6e9abbe8d9511;hp=82b2c79d73e1cc7fad7890af189f28b56f46ff2d;hpb=c355a5b632433b9d2a54107d24e644e68610f270;p=controller.git diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/ActionRegistryTest.java b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/ActionRegistryTest.java index 82b2c79d73..867d9a8700 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/ActionRegistryTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/ActionRegistryTest.java @@ -53,7 +53,7 @@ import org.opendaylight.mdsal.common.api.LogicalDatastoreType; import org.opendaylight.mdsal.dom.api.DOMActionInstance; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; -import org.opendaylight.yangtools.yang.model.api.SchemaPath; +import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -377,9 +377,8 @@ public class ActionRegistryTest { final Collection added = new ArrayList<>(nRoutes); for (int i = 0; i < nRoutes; i++) { QName type = QName.create(URI.create("/mockaction"), "mockaction" + routeIdCounter++); - final DOMActionInstance routeId = DOMActionInstance.of(SchemaPath.create(true, - type), LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.create(new - YangInstanceIdentifier.NodeIdentifier(type))); + final DOMActionInstance routeId = DOMActionInstance.of(Absolute.of(type), LogicalDatastoreType.OPERATIONAL, + YangInstanceIdentifier.create(new YangInstanceIdentifier.NodeIdentifier(type))); added.add(routeId); //Uninterruptibles.sleepUninterruptibly(50, TimeUnit.MILLISECONDS); @@ -415,9 +414,8 @@ public class ActionRegistryTest { private List createRouteIds() { QName type = QName.create(URI.create("/mockaction"), "mockaction" + routeIdCounter++); List routeIds = new ArrayList<>(1); - routeIds.add(DOMActionInstance.of(SchemaPath.create(true, type), - LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.create( - new YangInstanceIdentifier.NodeIdentifier(type)))); + routeIds.add(DOMActionInstance.of(Absolute.of(type), LogicalDatastoreType.OPERATIONAL, + YangInstanceIdentifier.create(new YangInstanceIdentifier.NodeIdentifier(type)))); return routeIds; } }