Bug 8303: BP odl:clustered-app-config initial/*-config.xml testability
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / test / AbstractBaseDataBrokerTest.java
index 257ed9031c440d3e0047d587e5724621a04d3024..cbbfc12edb45dfb5c36f636287c0960fa59a5e55 100644 (file)
@@ -25,6 +25,13 @@ public abstract class AbstractBaseDataBrokerTest extends AbstractSchemaAwareTest
 
     protected abstract AbstractDataBrokerTestCustomizer createDataBrokerTestCustomizer();
 
+    public AbstractDataBrokerTestCustomizer getDataBrokerTestCustomizer() {
+        if (testCustomizer == null) {
+            throw new IllegalStateException("testCustomizer not yet set by call to createDataBrokerTestCustomizer()");
+        }
+        return testCustomizer;
+    }
+
     @Override
     protected void setupWithSchema(final SchemaContext context) {
         testCustomizer = createDataBrokerTestCustomizer();