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%2Fmbeans%2FRemoteActionRegistryMXBeanImplTest.java;h=18b443d8fd9deb3028690387e5479e9bad90d502;hb=refs%2Fchanges%2F33%2F98733%2F5;hp=67aba156ef19c6274f3efa6e6042b738bf9728d2;hpb=927bce5688e4b9d33d3e5e9b769d8a0dba5ccdd4;p=controller.git diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteActionRegistryMXBeanImplTest.java b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteActionRegistryMXBeanImplTest.java index 67aba156ef..18b443d8fd 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteActionRegistryMXBeanImplTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/mbeans/RemoteActionRegistryMXBeanImplTest.java @@ -15,6 +15,7 @@ import akka.testkit.TestActorRef; import akka.testkit.javadsl.TestKit; import akka.util.Timeout; import com.google.common.collect.Lists; +import com.typesafe.config.ConfigFactory; import java.util.Collections; import java.util.List; import java.util.Map; @@ -31,13 +32,14 @@ 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; public class RemoteActionRegistryMXBeanImplTest { private static final QName LOCAL_QNAME = QName.create("base", "local"); - private static final SchemaPath EMPTY_SCHEMA_PATH = SchemaPath.ROOT; - private static final SchemaPath LOCAL_SCHEMA_PATH = SchemaPath.create(true, LOCAL_QNAME); + private static final QName REMOTE_QNAME = QName.create("base", "local"); + private static final Absolute LOCAL_SCHEMA_PATH = Absolute.of(LOCAL_QNAME); + private static final Absolute REMOTE_SCHEMA_PATH = Absolute.of(REMOTE_QNAME); private ActorSystem system; private TestActorRef testActor; @@ -46,10 +48,10 @@ public class RemoteActionRegistryMXBeanImplTest { @Before public void setUp() { - system = ActorSystem.create("test"); + system = ActorSystem.create("test", ConfigFactory.load().getConfig("unit-test")); final DOMActionInstance emptyActionIdentifier = DOMActionInstance.of( - EMPTY_SCHEMA_PATH, LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.EMPTY); + REMOTE_SCHEMA_PATH, LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.empty()); final DOMActionInstance localActionIdentifier = DOMActionInstance.of( LOCAL_SCHEMA_PATH, LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.of(LOCAL_QNAME));