aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-graph/src')
-rw-r--r--sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java8
-rw-r--r--sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java1
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;