Remove use of #getPath() in URIParametersParsing tests 31/100131/7
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 15 Mar 2022 09:54:12 +0000 (10:54 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 16 Mar 2022 09:42:12 +0000 (09:42 +0000)
SchemaNode#getPath is deprecated, not used and we do not need
to mock it anymore.

JIRA: NETCONF-818
Change-Id: I7856a7efd364b8bd83d939263b83cd578eaaf8a6
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/URIParametersParsing.java

index 6e48831d27cdcc17bafd2cc9a11011899c14ebc2..b85ab2b278ec05fd33700f182d2fa6f644951987 100644 (file)
@@ -51,7 +51,6 @@ import org.opendaylight.yangtools.yang.model.api.InputSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.RpcDefinition;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
 
 public class URIParametersParsing {
@@ -166,7 +165,6 @@ public class URIParametersParsing {
         container.withChild(augmentationBuilder.build());
 
         when(rpcDef.getInput()).thenReturn((InputSchemaNode) rpcInputSchemaNode);
-        when(rpcDef.getPath()).thenReturn(SchemaPath.create(true, rpcQName));
         when(rpcDef.getQName()).thenReturn(rpcQName);
 
         return new NormalizedNodeContext(new InstanceIdentifierContext<>(null, rpcDef, null, schema),