summaryrefslogtreecommitdiffstats
path: root/plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java')
-rw-r--r--plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java b/plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java
index 64173306d..02d52d215 100644
--- a/plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java
+++ b/plugins/restconf-client/provider/src/test/java/org/onap/ccsdk/sli/plugins/restconfdiscovery/TestRestconfDiscoveryNode.java
@@ -29,7 +29,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
import org.onap.ccsdk.sli.core.sli.SvcLogicException;
import org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode;
import org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode;
-import org.opendaylight.yangtools.yang.parser.impl.YangParserFactoryImpl;
+import org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory;
import java.io.IOException;
import java.net.URI;
@@ -38,7 +38,7 @@ import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
@@ -107,7 +107,7 @@ public class TestRestconfDiscoveryNode {
Map<String, String> p = new HashMap<>();
RestconfDiscoveryNode rdn = new RestconfDiscoveryNode(
- new RestconfApiCallNode(new RestapiCallNode(), new YangParserFactoryImpl()));
+ new RestconfApiCallNode(new RestapiCallNode(), new DefaultYangParserFactory()));
rdn.establishSubscription(p, ctx);
}
@@ -117,7 +117,7 @@ public class TestRestconfDiscoveryNode {
ctx.setAttribute("restapi-result.response-code", "200");
ctx.setAttribute("response-code", "404");
RestconfDiscoveryNode rdn = new RestconfDiscoveryNode(
- new RestconfApiCallNode(new RestapiCallNode(), new YangParserFactoryImpl()));
+ new RestconfApiCallNode(new RestapiCallNode(), new DefaultYangParserFactory()));
assertThat(rdn.getResponseCode("restapi-result", ctx),
is("200"));
assertThat(rdn.getResponseCode(null, ctx),
@@ -133,7 +133,7 @@ public class TestRestconfDiscoveryNode {
ctx.setAttribute("ietf-subscribed-notifications:establish-subscripti" +
"on.output.identifier", "89");
RestconfDiscoveryNode rdn = new RestconfDiscoveryNode(
- new RestconfApiCallNode(new RestapiCallNode(), new YangParserFactoryImpl()));
+ new RestconfApiCallNode(new RestapiCallNode(), new DefaultYangParserFactory()));
assertThat(rdn.getOutputIdentifier("restapi-result", ctx),
is("89"));
}
@@ -144,7 +144,7 @@ public class TestRestconfDiscoveryNode {
"futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarny" +
"le3sdcqq9hftc4lebz464b5ffxmlbvg9";
RestconfDiscoveryNode rdn = new RestconfDiscoveryNode(
- new RestconfApiCallNode(new RestapiCallNode(), new YangParserFactoryImpl()));
+ new RestconfApiCallNode(new RestapiCallNode(), new DefaultYangParserFactory()));
assertThat(rdn.getTokenId(customHttpHeaders),
is("x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqkt" +