From: Robert Varga Date: Fri, 29 May 2020 10:09:18 +0000 (+0200) Subject: Modernize DataBrokerTestModule X-Git-Tag: v6.0.1~24 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=4273965a3b1436f6ce7d16b642cd7048e0fed5d0;p=mdsal.git Modernize DataBrokerTestModule Before we release this thing make sure we give out an EffectiveModelContextSupplier. JIRA: MDSAL-556 Change-Id: I27f219f398713d53db9e05af44a029b3281367a4 Signed-off-by: Robert Varga --- diff --git a/binding/mdsal-binding-test-utils/src/main/java/org/opendaylight/mdsal/binding/testutils/DataBrokerTestModule.java b/binding/mdsal-binding-test-utils/src/main/java/org/opendaylight/mdsal/binding/testutils/DataBrokerTestModule.java index 460e2fefc8..442519f76a 100644 --- a/binding/mdsal-binding-test-utils/src/main/java/org/opendaylight/mdsal/binding/testutils/DataBrokerTestModule.java +++ b/binding/mdsal-binding-test-utils/src/main/java/org/opendaylight/mdsal/binding/testutils/DataBrokerTestModule.java @@ -14,7 +14,7 @@ import org.opendaylight.mdsal.binding.dom.adapter.test.AbstractConcurrentDataBro import org.opendaylight.mdsal.dom.api.DOMDataBroker; import org.opendaylight.mdsal.dom.api.DOMSchemaService; import org.opendaylight.mdsal.dom.broker.DOMNotificationRouter; -import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider; +import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider; @Beta public class DataBrokerTestModule { @@ -63,7 +63,7 @@ public class DataBrokerTestModule { return dataBrokerTest.getDataBrokerTestCustomizer().getSchemaService(); } - public SchemaContextProvider getSchemaContextProvider() { + public EffectiveModelContextProvider getSchemaContextProvider() { return dataBrokerTest.getDataBrokerTestCustomizer().getSchemaService()::getGlobalContext; } }