Try to eliminate random failures in RaftActorTest 15/15215/3
authorMoiz Raja <moraja@cisco.com>
Thu, 12 Feb 2015 20:22:11 +0000 (12:22 -0800)
committerMoiz Raja <moraja@cisco.com>
Thu, 12 Feb 2015 23:47:56 +0000 (15:47 -0800)
commit2aaaf063b034288d0d6eb8f276a449dcb53b279a
tree3276e54495b73a27e8be1a199806fccef6652ded
parent83dfe301bf2a2b1eff6883a2af3282c95d5a752e
Try to eliminate random failures in RaftActorTest

This patch attempts to add the following enhancements,
1. All test actors get created using a TestActorFactory which when closed
   automatically kills the actors created by it
2. Provide a method to auto generate a friendly actor name/id for cases
   where we need to use such names

Change-Id: Ia1fd81f08baf00dfc614dfa8466be2a62f18952d
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorTest.java
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/TestActorFactory.java [new file with mode: 0644]