From: Robert Varga Date: Fri, 1 May 2015 19:57:32 +0000 (+0200) Subject: CDS: make sure to assert non-null Exception in test X-Git-Tag: release/beryllium~588 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=refs%2Fchanges%2F50%2F20550%2F1 CDS: make sure to assert non-null Exception in test The exception can be potentially null, make sure we fail the test if it is. Change-Id: I6b987e2962abfaa8afa570791e3500fa4916e5c2 Signed-off-by: Robert Varga (cherry picked from commit 366726ce5400e77ad813aba0ed1289331093db50) --- diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java index 579dea2638..a47cf11896 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java @@ -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; }