}
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