Bug 996: Fixed UT bug due to incorrect VTN event synchronization. 24/8324/1
authorShigeru Yasuda <s-yasuda@da.jp.nec.com>
Wed, 25 Jun 2014 10:57:16 +0000 (19:57 +0900)
committerShigeru Yasuda <s-yasuda@da.jp.nec.com>
Wed, 25 Jun 2014 10:58:28 +0000 (19:58 +0900)
commit982177d58edc77cf827554b0af322cd041c7229a
tree66efb70f90ee28a36b8a5a121ca7fa91a70b5731
parenta2bdf355f5264cedd5dd0a9b406f73d29336763a
Bug 996: Fixed UT bug due to incorrect VTN event synchronization.

If the test code verifies the number of VTN events delivered to the
listener instance, it needs to ensure that no VTN event is pending
before adding the listener.

Additional changes:

  * VTNThreadDataTest: Fixed too short timeout.
  * Add some test cases for IVTNModeListener.

Change-Id: Ic6efdab85e9cdbda9f73d27bf1319263edba67ab
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
manager/implementation/src/test/java/org/opendaylight/vtn/manager/internal/VTNManagerImplTest.java
manager/implementation/src/test/java/org/opendaylight/vtn/manager/internal/VTNManagerImplWithNodesTest.java
manager/implementation/src/test/java/org/opendaylight/vtn/manager/internal/VTNThreadDataTest.java