Revert "Support multithreading DataBrokerTestCustomizer (AbstractDataBrokerTest)" 67/51467/1
authorMichael Vorburger <vorburger@redhat.com>
Mon, 6 Feb 2017 12:47:24 +0000 (13:47 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 6 Feb 2017 12:48:48 +0000 (13:48 +0100)
This reverts commit 930817d4f1e01c7e08fd7e8ad79bf781cb53034a of Bug 7538.

Bug:7538
Change-Id: Ie26f217a2f64cb4eea2d64f2280f6d9773713b21
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/DataBrokerTestCustomizer.java

index 8d34cbd..23600a3 100644 (file)
@@ -10,7 +10,6 @@ package org.opendaylight.controller.md.sal.binding.test;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
-import java.util.concurrent.Executors;
 import javassist.ClassPool;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
 import javassist.ClassPool;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
@@ -84,8 +83,9 @@ public class DataBrokerTestCustomizer {
         return new BindingDOMNotificationPublishServiceAdapter(bindingToNormalized, domNotificationRouter);
     }
 
         return new BindingDOMNotificationPublishServiceAdapter(bindingToNormalized, domNotificationRouter);
     }
 
+
     public ListeningExecutorService getCommitCoordinatorExecutor() {
     public ListeningExecutorService getCommitCoordinatorExecutor() {
-        return MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
+        return MoreExecutors.newDirectExecutorService();
     }
 
     public DataBroker createDataBroker() {
     }
 
     public DataBroker createDataBroker() {
@@ -101,7 +101,7 @@ public class DataBrokerTestCustomizer {
     }
 
     private DOMDataBroker getDOMDataBroker() {
     }
 
     private DOMDataBroker getDOMDataBroker() {
-        if (domDataBroker == null) {
+        if(domDataBroker == null) {
             domDataBroker = createDOMDataBroker();
         }
         return domDataBroker;
             domDataBroker = createDOMDataBroker();
         }
         return domDataBroker;

©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.