From 7d8d20da369015e1e435c7c843eb37b147f8ea8c Mon Sep 17 00:00:00 2001 From: Ivan Hrasko Date: Tue, 15 Mar 2022 10:54:12 +0100 Subject: [PATCH] Remove use of #getPath() in URIParametersParsing tests 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 --- .../controller/sal/restconf/impl/test/URIParametersParsing.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/URIParametersParsing.java b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/URIParametersParsing.java index 6e48831d27..b85ab2b278 100644 --- a/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/URIParametersParsing.java +++ b/restconf/restconf-nb-bierman02/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/URIParametersParsing.java @@ -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), -- 2.36.6