Cleanup use of deprecated constructs
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / streams / listeners / ListenerAdapterTest.java
index 84b9ef19e33133af496d4990d395500b92647e51..6822850449311a2b90d03e2e1b8376e9c6ffa68f 100644 (file)
@@ -85,8 +85,7 @@ public class ListenerAdapterTest extends AbstractConcurrentDataBrokerTest {
         domDataBroker = getDomBroker();
 
         transactionChainHandler = new TransactionChainHandler(domDataBroker);
-        schemaContextHandler = SchemaContextHandler.newInstance(transactionChainHandler,
-                Mockito.mock(DOMSchemaService.class));
+        schemaContextHandler = new SchemaContextHandler(transactionChainHandler, Mockito.mock(DOMSchemaService.class));
         schemaContextHandler.onModelContextUpdated(SCHEMA_CONTEXT);
     }