Cleanup use of deprecated constructs
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / TestUtils.java
index 10455b5f32500dcd8ab149d6bcea0299e75eff82..86ba28be75addd19314f2871e31b6c81e9d8f8c2 100644 (file)
@@ -282,7 +282,7 @@ public final class TestUtils {
         doReturn(mockTx).when(mockChain).newWriteOnlyTransaction();
 
         doReturn(mockChain).when(mockDataBroker).createTransactionChain(any());
-        SchemaContextHandler schemaContextHandler = SchemaContextHandler.newInstance(
+        SchemaContextHandler schemaContextHandler = new SchemaContextHandler(
                 new TransactionChainHandler(mockDataBroker), Mockito.mock(DOMSchemaService.class));
         schemaContextHandler.onModelContextUpdated(schemaContext);
         return schemaContextHandler;