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=3ab51193df37f3b1cdd6e366177ecee886c8b7d1;hb=7ce039b3e55d153fc75bc88198c49536ab83befc;hp=82b2c79d73e1cc7fad7890af189f28b56f46ff2d;hpb=927bce5688e4b9d33d3e5e9b769d8a0dba5ccdd4;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..3ab51193df 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 @@ -27,7 +27,6 @@ import com.google.common.base.Stopwatch; import com.google.common.collect.Sets; import com.google.common.util.concurrent.Uninterruptibles; import com.typesafe.config.ConfigFactory; -import java.net.URI; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; @@ -53,7 +52,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; @@ -376,10 +375,9 @@ public class ActionRegistryTest { final int nRoutes = 500; 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))); + QName type = QName.create("/mockaction", "mockaction" + routeIdCounter++); + final DOMActionInstance routeId = DOMActionInstance.of(Absolute.of(type), LogicalDatastoreType.OPERATIONAL, + YangInstanceIdentifier.create(new YangInstanceIdentifier.NodeIdentifier(type))); added.add(routeId); //Uninterruptibles.sleepUninterruptibly(50, TimeUnit.MILLISECONDS); @@ -413,11 +411,10 @@ public class ActionRegistryTest { } private List createRouteIds() { - QName type = QName.create(URI.create("/mockaction"), "mockaction" + routeIdCounter++); + QName type = QName.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; } }