Fixed potential class pool override in integration tests.
authorTony Tkacik <ttkacik@cisco.com>
Mon, 7 Apr 2014 15:34:04 +0000 (17:34 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 7 Apr 2014 15:36:51 +0000 (17:36 +0200)
commitcd17050ad2fcd454a72d6ed396d868970f7fa0c2
tree16f76f224e94e87e56776e57240287d96cc22f0a
parent4a6130db2397f1ee42428eac7e83992cc65914ec
Fixed potential class pool override in integration tests.

Classloader in JUnit test is shared resource and in order
to integrate well with Javassist we are required to share
also classpool in order to compile generated code
using previously existing generated code in same Classloader.

If we introduce new ClassPool for same classloader,
compilation may fail, because new ClassPool is unable
to fetch bytecode for already generated classes.

Change-Id: Idd933670fe0a1c06d40aeed182f46997a843ab91
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/BindingBrokerTestFactory.java