Cleanup use of deprecated constructs
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / RestconfInvokeOperationsServiceImplTest.java
index 57e8017970c926f14bbdc08b851b6c387c78314f..0d792e6479e972621e438bb9aab2070cd5c703ca 100644 (file)
@@ -66,7 +66,7 @@ public class RestconfInvokeOperationsServiceImplTest {
         final DOMDataTreeWriteTransaction wTx = mock(DOMDataTreeWriteTransaction.class);
         when(domTx.newWriteOnlyTransaction()).thenReturn(wTx);
         doReturn(CommitInfo.emptyFluentFuture()).when(wTx).commit();
-        final SchemaContextHandler schemaContextHandler = SchemaContextHandler.newInstance(txHandler,
+        final SchemaContextHandler schemaContextHandler = new SchemaContextHandler(txHandler,
             mock(DOMSchemaService.class));
         schemaContextHandler.onModelContextUpdated(contextRef.get());
         this.invokeOperationsService =