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=16c065bd02fb7fea9fac3345cc8f35b2394890d5;hb=698468cfa4cdc7d5ff7dfe0639058fea3e5d7d5b;hpb=f3aede9942aafd5e7a7504cad5b887b20639d0b0 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 16c065bd02..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 @@ -39,13 +39,13 @@ 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) { return CLASS_POOL; @@ -54,6 +54,7 @@ public class BindingBrokerTestFactory { return classPool; } + @Deprecated public void setClassPool(final ClassPool classPool) { this.classPool = classPool; }