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
}
try {
+ @SuppressWarnings("unused")
Path res = new Path(edges);
} catch (ConstructionException e) {
// Exception is NOT expected if raised test will fail
edges.remove(2);
try {
+ @SuppressWarnings("unused")
Path res = new Path(edges);
// Exception is expected if not raised test will fail
Assert.assertTrue(false);
@Test
public void testPathEmpty() {
try {
- Path path = new Path(new LinkedList());
+ @SuppressWarnings("unused")
+ Path path = new Path(new LinkedList<Edge>());
// Exception is expected if not raised test will fail
Assert.assertTrue(false);
} catch (ConstructionException e) {
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