X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Ftest%2Futil%2FBindingBrokerTestFactory.java;h=145a59a71de89486cef39ec27db50a0d329362d5;hp=c58e258e8b64daa1151a88d1153aac3571d813ea;hb=698468cfa4cdc7d5ff7dfe0639058fea3e5d7d5b;hpb=75f9ebff528344841c86e08d302340638db20858 diff --git a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/BindingBrokerTestFactory.java b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/BindingBrokerTestFactory.java index c58e258e8b..145a59a71d 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/BindingBrokerTestFactory.java +++ b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/BindingBrokerTestFactory.java @@ -7,14 +7,12 @@ */ package org.opendaylight.controller.sal.binding.test.util; -import java.util.concurrent.ExecutorService; - -import javassist.ClassPool; - import com.google.common.annotations.Beta; import com.google.common.base.Preconditions; import com.google.common.util.concurrent.ListeningExecutorService; import com.google.common.util.concurrent.MoreExecutors; +import java.util.concurrent.ExecutorService; +import javassist.ClassPool; @Beta public class BindingBrokerTestFactory { @@ -41,23 +39,23 @@ public class BindingBrokerTestFactory { this.executor = executor; } - public BindingTestContext getTestContext() { Preconditions.checkState(executor != null, "Executor is not set."); ListeningExecutorService listenableExecutor = MoreExecutors.listeningDecorator(executor); - return new BindingTestContext(listenableExecutor, getClassPool(),startWithParsedSchema); + return new BindingTestContext(listenableExecutor, startWithParsedSchema); } + @Deprecated public ClassPool getClassPool() { - if(classPool == null) { + if (classPool == null) { return CLASS_POOL; } return classPool; } + @Deprecated public void setClassPool(final ClassPool classPool) { this.classPool = classPool; } - }