From: Ed Warnicke Date: Tue, 8 Apr 2014 16:11:16 +0000 (+0000) Subject: Merge "Fixed potential class pool override in integration tests." X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~264 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=44bac35e828c5dfee8a9fb7fad4f57bceaa9490b;hp=a2c374bb7bd34eb27bac4db587e843378181762e Merge "Fixed potential class pool override in integration tests." --- 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 e5b57e3668..08c5d061dc 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 @@ -17,7 +17,7 @@ import com.google.common.util.concurrent.MoreExecutors; public class BindingBrokerTestFactory { - private static final ClassPool CLASS_POOL = new ClassPool(); + private static final ClassPool CLASS_POOL = ClassPool.getDefault(); private boolean startWithParsedSchema = true; private ExecutorService executor; private ClassPool classPool; @@ -27,7 +27,7 @@ public class BindingBrokerTestFactory { return startWithParsedSchema; } - public void setStartWithParsedSchema(boolean startWithParsedSchema) { + public void setStartWithParsedSchema(final boolean startWithParsedSchema) { this.startWithParsedSchema = startWithParsedSchema; } @@ -35,7 +35,7 @@ public class BindingBrokerTestFactory { return executor; } - public void setExecutor(ExecutorService executor) { + public void setExecutor(final ExecutorService executor) { this.executor = executor; } @@ -54,7 +54,7 @@ public class BindingBrokerTestFactory { return classPool; } - public void setClassPool(ClassPool classPool) { + public void setClassPool(final ClassPool classPool) { this.classPool = classPool; } diff --git a/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/bugfix/DOMCodecBug02Test.java b/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/bugfix/DOMCodecBug02Test.java index 6784c0cc91..bc6f567c2b 100644 --- a/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/bugfix/DOMCodecBug02Test.java +++ b/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/bugfix/DOMCodecBug02Test.java @@ -17,8 +17,6 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; -import javassist.ClassPool; - import org.junit.Test; import org.opendaylight.controller.md.sal.common.api.TransactionStatus; import org.opendaylight.controller.sal.binding.api.data.DataModificationTransaction; @@ -77,7 +75,6 @@ public class DOMCodecBug02Test extends AbstractDataServiceTest { ListeningExecutorService executor = MoreExecutors.sameThreadExecutor(); BindingBrokerTestFactory factory = new BindingBrokerTestFactory(); factory.setExecutor(executor); - factory.setClassPool(new ClassPool()); factory.setStartWithParsedSchema(getStartWithSchema()); testContext = factory.getTestContext(); testContext.start();