diff options
author | David Gageot <david@gageot.net> | 2012-04-24 10:12:28 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-04-27 14:58:59 +0200 |
commit | 872b3923f80d9a2bcc13713f41cf801f2a7024eb (patch) | |
tree | 2ef0a5003c3becb1b0e53d5683e60ed3c9f759b5 /sonar-graph/src | |
parent | 4b262d15878b31c6c2c7efd8236fb5c65093ba11 (diff) | |
download | sonarqube-872b3923f80d9a2bcc13713f41cf801f2a7024eb.tar.gz sonarqube-872b3923f80d9a2bcc13713f41cf801f2a7024eb.zip |
Remove warnings
Diffstat (limited to 'sonar-graph/src')
-rw-r--r-- | sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java | 8 | ||||
-rw-r--r-- | sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java b/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java index 36166eb95cf..06818fc2856 100644 --- a/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java +++ b/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java @@ -19,8 +19,6 @@ */ package org.sonar.graph; -import java.io.IOException; - import org.junit.Test; import static org.junit.Assert.assertEquals; @@ -55,7 +53,7 @@ public class DsmTopologicalSorterTest { } @Test(expected = IllegalStateException.class) - public void sortCyclicGraph() throws IOException { + public void sortCyclicGraph() { StringPrintWriter textDsm = new StringPrintWriter(); textDsm.println(" | A | B | C | D |"); textDsm.println("A | | | | |"); @@ -68,7 +66,7 @@ public class DsmTopologicalSorterTest { } @Test - public void sortCyclicGraphWithManuallyFlaggedFeedbackEdges() throws IOException { + public void sortCyclicGraphWithManuallyFlaggedFeedbackEdges() { StringPrintWriter textDsm = new StringPrintWriter(); textDsm.println(" | A | B | C | D |"); textDsm.println("A | | | | |"); @@ -90,7 +88,7 @@ public class DsmTopologicalSorterTest { } @Test - public void sortCyclicGraphWithFlaggedFeedbackEdges() throws IOException { + public void sortCyclicGraphWithFlaggedFeedbackEdges() { DirectedGraph<String, StringEdge> dcg = DirectedGraph.createStringDirectedGraph(); dcg.addEdge("A", "B", 3).addEdge("B", "A", 1); CycleDetector<String> cycleDetector = new CycleDetector<String>(dcg); diff --git a/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java b/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java index a00c4625a82..0702e945344 100644 --- a/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java +++ b/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java @@ -21,7 +21,6 @@ package org.sonar.graph; import org.junit.Test; -import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; |