BUG-5006: Rework testEnqueueEvent to avoid private methods 49/32949/4
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)
commit0d77ee109e4687c06c4bc977215aa27c22a8a4d2
tree294465e55487f81d7104e2249c5c6f70b5265645
parent2fbc8d731a29e0a9fd49ba0dcecee379e6aa9e0b
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