BUG-5006: Rework testEnqueueEvent to avoid private methods
authorStephen Kitt <skitt@redhat.com>
Mon, 18 Jan 2016 17:00:55 +0000 (18:00 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 19 Jan 2016 10:18:22 +0000 (11:18 +0100)
commite463e732a65b65125d17a6cd4657d8104490a043
tree992c626aabf3b6d694bd93cddab49dd7cbe464fb
parent25604afeb373693d48a0e761bf7665bf24430a7f
BUG-5006: Rework testEnqueueEvent to avoid private methods

Instead of checking calls to dispatchEvent(), provision an event
handler and use that to make sure the queue is processed. Stop the
event processing thread to avoid races in the assertions.

Change-Id: Ic385314e15dead0c1f796c25863136a3a60099ac
Signed-off-by: Stephen Kitt <skitt@redhat.com>
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/impl/EventDispatcherImplTest.java