use multi thread executor in unit tests 80/77780/3
authorMatej Perina <matej.perina@pantheon.tech>
Wed, 14 Nov 2018 11:11:16 +0000 (12:11 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 21 Nov 2018 11:08:50 +0000 (11:08 +0000)
commitfb4d3d8597e260c0eb32a82fdbdbf63f0d8e48f9
tree3075a5d8d8867b8b2bf80d76277d3c16a3bbd3c9
parentf37aa92684cd2e1662ba12f54ee7064e9466d881
use multi thread executor in unit tests

- instantiatie AbstractConcurentDataBroker the way to use
  CachedThreadPoolExecutor instead of DirectExecutor
- with new executor we are not in sync with .get() on transaction
  future, so timers continuos verification with timeout is used
  in tests where needed

JIRA: BGPCEP-847

Change-Id: I86cbe54a17e65d4ac7bdc7ca447ac58f345c473a
Signed-off-by: Matej Perina <matej.perina@pantheon.tech>
(cherry picked from commit 99daf02ad6b9f722e581cadaf101e1bff31366f1)
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpDeployerImplTest.java
config-loader/config-loader-impl/src/test/java/org/opendaylight/bgpcep/config/loader/impl/AbstractConfigLoader.java