X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FPathTest.java;h=0ea88558ded7e0113e283b520f61bc426aa735ea;hb=8916ab2b0c56bc6d5a73888ccb76ac036ccd81a0;hp=656dd8ea5bf45b35d65f56e3ff71276967527aa9;hpb=06aa5ce746e29a3760688b2ef2817f50bec5ea7a;p=controller.git diff --git a/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PathTest.java b/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PathTest.java index 656dd8ea5b..0ea88558de 100644 --- a/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PathTest.java +++ b/opendaylight/sal/api/src/test/java/org/opendaylight/controller/sal/core/PathTest.java @@ -21,11 +21,6 @@ import java.util.List; import java.util.Arrays; import org.junit.Assert; import org.junit.Test; -import org.opendaylight.controller.sal.core.ConstructionException; -import org.opendaylight.controller.sal.core.Edge; -import org.opendaylight.controller.sal.core.Node; -import org.opendaylight.controller.sal.core.NodeConnector; -import org.opendaylight.controller.sal.core.Path; public class PathTest { @Test @@ -71,6 +66,7 @@ public class PathTest { } try { + @SuppressWarnings("unused") Path res = new Path(edges); } catch (ConstructionException e) { // Exception is NOT expected if raised test will fail @@ -83,6 +79,7 @@ public class PathTest { edges.remove(2); try { + @SuppressWarnings("unused") Path res = new Path(edges); // Exception is expected if not raised test will fail Assert.assertTrue(false); @@ -236,7 +233,8 @@ public class PathTest { @Test public void testPathEmpty() { try { - Path path = new Path(new LinkedList()); + @SuppressWarnings("unused") + Path path = new Path(new LinkedList()); // Exception is expected if not raised test will fail Assert.assertTrue(false); } catch (ConstructionException e) { @@ -258,6 +256,7 @@ public class PathTest { Edge e0 = new Edge(c0, c1); + @SuppressWarnings("unused") Path path = new Path(Arrays.asList(e0)); } catch (ConstructionException e) { // Exception is NOT expected if raised test will fail