Bump upstreams for Silicon
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / java / org / opendaylight / controller / remote / rpc / registry / ActionRegistryTest.java
index 82b2c79d73e1cc7fad7890af189f28b56f46ff2d..867d9a8700db550432a446121090e4c5560ae7c1 100644 (file)
@@ -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<DOMActionInstance> 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<DOMActionInstance> createRouteIds() {
         QName type = QName.create(URI.create("/mockaction"), "mockaction" + routeIdCounter++);
         List<DOMActionInstance> 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;
     }
 }