Cleanup AbstractStatementRegistryConsumerTest 41/94341/4
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Jan 2021 14:09:17 +0000 (15:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Jan 2021 16:02:06 +0000 (17:02 +0100)
commit09073086580ca40c1a7329f8869b1d2778682d91
tree701b3b5abe90b86723b9e008ba0f05758c4b7767
parentce341e5c075ca8378b19e30db8e63f22634a0e98
Cleanup AbstractStatementRegistryConsumerTest

Make sure we properly clean up the activator. While we're here,
also use read-only transactions for reads, close them as needed
and do not read more than we need to.

Also improve CheckUtil to report received messages when an
assertion fails -- and property assert errors.

Change-Id: Iee09d09df4b8fb50d19938074d7e65e55f67a6c3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/openconfig-rp-statement/src/test/java/org/opendaylight/protocol/bgp/openconfig/routing/policy/statement/AbstractStatementRegistryConsumerTest.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/AbstractAddPathTest.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/SimpleSessionListener.java
testtool-util/src/main/java/org/opendaylight/protocol/util/CheckUtil.java
testtool-util/src/test/java/org/opendaylight/protocol/util/CheckUtilTest.java