CDS: make sure to assert non-null Exception in test 50/20550/1
authorRobert Varga <rovarga@cisco.com>
Fri, 1 May 2015 19:57:32 +0000 (21:57 +0200)
committerMoiz Raja <moraja@cisco.com>
Fri, 15 May 2015 18:06:30 +0000 (18:06 +0000)
The exception can be potentially null, make sure we fail the test if it
is.

Change-Id: I6b987e2962abfaa8afa570791e3500fa4916e5c2
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 366726ce5400e77ad813aba0ed1289331093db50)

opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java

index 579dea26387059f30d7bbc0f0064d91f195006ad..a47cf118963e1698c68ef2c2706a44c2baaeeb59 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.controller.cluster.raft;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
 import akka.actor.ActorRef;
 import akka.actor.InvalidActorNameException;
 import akka.actor.PoisonPill;
@@ -201,6 +202,7 @@ public abstract class AbstractRaftActorIntegrationTest extends AbstractActorTest
             }
         }
 
+        assertNotNull(lastEx);
         throw lastEx;
     }