Cleanup use of deprecated constructs
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / jersey / providers / test / AbstractBodyReaderTest.java
index 31b7e7c323a9c473ce7a387c77f1d49b3d0bd131..b08e74378c74662320c14df6d9d4cbc9f062d786 100644 (file)
@@ -52,7 +52,7 @@ public abstract class AbstractBodyReaderTest {
         doReturn(schemaContext).when(mountPoint).getEffectiveModelContext();
         doCallRealMethod().when(mountPoint).getSchemaContext();
 
-        mountPointServiceHandler = DOMMountPointServiceHandler.newInstance(mountPointService);
+        mountPointServiceHandler = new DOMMountPointServiceHandler(mountPointService);
     }
 
     protected abstract MediaType getMediaType();
@@ -62,7 +62,7 @@ public abstract class AbstractBodyReaderTest {
         return TestRestconfUtils.loadSchemaContext(yangPath, schemaContext);
     }
 
-    protected static <T extends AbstractIdentifierAwareJaxRsProvider> void mockBodyReader(
+    protected static <T extends AbstractIdentifierAwareJaxRsProvider<?>> void mockBodyReader(
             final String identifier, final T normalizedNodeProvider,
             final boolean isPost) throws NoSuchFieldException,
             SecurityException, IllegalArgumentException, IllegalAccessException {