Patch to eliminate sleeps in RemoteRpc tests 84/10084/3
authorAbhishek Kumar <abhishk2@cisco.com>
Wed, 20 Aug 2014 01:49:06 +0000 (18:49 -0700)
committerAbhishek Kumar <abhishk2@cisco.com>
Thu, 21 Aug 2014 02:07:14 +0000 (19:07 -0700)
commit16e5d445e88b9904d152248654409fd50bb88a4b
treed92b7b4fa278f9c191c8f47ae46dc28d77f62726
parent0e04f999d78b80e9b42026e1a333327d48818c08
Patch to eliminate sleeps in RemoteRpc tests

Instead of using sleeps to wait for message processing to complete
the tests now installs a probe on the subject(actor). Subject(actor) sends
message to the probe when it processes message. The test monitors the
probe for specific messages and knows when the message has been
processed by the subject(actor).

Patch#2: Fixed probe creation and updated assertions

Change-Id: I10652b59e4138adbe6c6821d4411b06e1b3f1598
Signed-off-by: Moiz Raja <moraja@cisco.com>
Signed-off-by: Abhishek Kumar <abhishk2@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RpcRegistry.java
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/gossip/BucketStore.java
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/utils/ConditionalProbe.java [new file with mode: 0644]
opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/RpcRegistryTest.java
opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/application.conf
opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/logback.xml [new file with mode: 0644]