From a8d504b0a7c39db30aafa42f7099c22858638eb2 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 14 Jul 2017 02:47:24 +0530 Subject: [PATCH] Bug 8163: getDataTreeChangeListenerExecutor() & DataBrokerTestModule Adjust AbstractDataBrokerTestCustomizer with a getDataTreeChangeListenerExecutor() instead of a setDataTreeChangeListenerExecutor(), just for more consistency with the existing getCommitCoordinatorExecutor() method. Also less confusing (to me) than seeing the private Executor set by default which may get changed by the setter later. Adjust ConcurrentDataBrokerTestCustomizer with the useMTDataTreeChangeListenerExecutor as a constructor argument, instead of an useMTDataTreeChangeListenerExecutor() method, just for consistency for how you already have it in AbstractConcurrentDataBrokerTest. Extend ConstantSchemaAbstractDataBrokerTest and DataBrokerTestModule to allow passing through this new opt-in tweak flag, so that tests in downstream projects such as genius and netvirt can staring exploring enabling this. JIRA: MDSAL-556 Change-Id: I4ad85ac48163d2f4bac865f46a3b047d5b7d333a Signed-off-by: Michael Vorburger Signed-off-by: Robert Varga (cherry picked from commit 2224375d3c22043958c31195044b4169cb1caff7) --- binding/mdsal-binding-test-utils/pom.xml | 1 + .../binding/testutils/DataBrokerTestModule.java | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/binding/mdsal-binding-test-utils/pom.xml b/binding/mdsal-binding-test-utils/pom.xml index 6da9cb51fd..65838c5e7a 100644 --- a/binding/mdsal-binding-test-utils/pom.xml +++ b/binding/mdsal-binding-test-utils/pom.xml @@ -66,6 +66,7 @@ org.opendaylight.mdsal mdsal-binding-dom-adapter test-jar + compile