X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Ftest%2Futil%2FBindingBrokerTestFactory.java;h=cd4e4101d972c8b2872f20a0d1b7b574c554b737;hb=41c10e8423c8f0fa88a7f7180dfbb582fabcbb8b;hp=c58e258e8b64daa1151a88d1153aac3571d813ea;hpb=c222e37f2a0f0f3f6266242fbea2d3b018f4e6e3;p=controller.git 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..cd4e4101d9 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,22 +7,17 @@ */ 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; @Beta +@Deprecated public class BindingBrokerTestFactory { - - private static final ClassPool CLASS_POOL = ClassPool.getDefault(); private boolean startWithParsedSchema = true; private ExecutorService executor; - private ClassPool classPool; public boolean isStartWithParsedSchema() { @@ -41,23 +36,9 @@ 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); } - - public ClassPool getClassPool() { - if(classPool == null) { - return CLASS_POOL; - } - - return classPool; - } - - public void setClassPool(final ClassPool classPool) { - this.classPool = classPool; - } - }