import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+@Deprecated
public abstract class AbstractBaseDataBrokerTest extends AbstractSchemaAwareTest {
private static final int ASSERT_COMMIT_DEFAULT_TIMEOUT = 5000;
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();
dataBroker = testCustomizer.createDataBroker();
- domBroker = testCustomizer.createDOMDataBroker();
+ domBroker = testCustomizer.getDOMDataBroker();
testCustomizer.updateSchema(context);
}