Make AbstractDataBrokerTestCustomizer#getDomBroker public 89/73389/1
authorTom Pantelis <tompantelis@gmail.com>
Mon, 25 Jun 2018 03:12:08 +0000 (23:12 -0400)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 25 Jun 2018 03:12:08 +0000 (23:12 -0400)
The DOMDataBroker is exposed via createDOMDataBroker however
this creates a new instance so users don't actually get the
DOMDataBroker instance that is backing the DataBroker.
Therefore expose getDomBroker publicly.

Change-Id: Id4b53935e4c17e4a9cd4538d669a9e05d97892af
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/AbstractBaseDataBrokerTest.java
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/AbstractDataBrokerTestCustomizer.java

index cbbfc12..408d8c1 100644 (file)
@@ -36,7 +36,7 @@ public abstract class AbstractBaseDataBrokerTest extends AbstractSchemaAwareTest
     protected void setupWithSchema(final SchemaContext context) {
         testCustomizer = createDataBrokerTestCustomizer();
         dataBroker = testCustomizer.createDataBroker();
-        domBroker = testCustomizer.createDOMDataBroker();
+        domBroker = testCustomizer.getDOMDataBroker();
         testCustomizer.updateSchema(context);
     }
 
index 784fea8..f36b685 100644 (file)
@@ -102,7 +102,7 @@ public abstract class AbstractDataBrokerTestCustomizer {
         return this.schemaService;
     }
 
-    private DOMDataBroker getDOMDataBroker() {
+    public DOMDataBroker getDOMDataBroker() {
         if (this.domDataBroker == null) {
             this.domDataBroker = createDOMDataBroker();
         }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.