aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-11-07 16:31:43 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-11-07 16:31:43 +0100
commitaa97d2cd625211bae5472d17393e0344906a292e (patch)
treefb4ee2a74b91e9b4e57497e25fe552737d36ac4e
parent07dee4c58e8be5e83c3c3c17ee2c47600ccf27e6 (diff)
downloadsonarqube-aa97d2cd625211bae5472d17393e0344906a292e.tar.gz
sonarqube-aa97d2cd625211bae5472d17393e0344906a292e.zip
SONAR-5672 Fix graph test
-rw-r--r--sonar-graph/src/test/java/org/sonar/graph/CycleDetectorTest.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/sonar-graph/src/test/java/org/sonar/graph/CycleDetectorTest.java b/sonar-graph/src/test/java/org/sonar/graph/CycleDetectorTest.java
index d6b280e93d4..c6dd4d7484d 100644
--- a/sonar-graph/src/test/java/org/sonar/graph/CycleDetectorTest.java
+++ b/sonar-graph/src/test/java/org/sonar/graph/CycleDetectorTest.java
@@ -19,13 +19,12 @@
*/
package org.sonar.graph;
+import org.junit.Test;
+
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
-import org.apache.commons.lang.SystemUtils;
-import org.junit.Test;
-
import static org.fest.assertions.Assertions.assertThat;
public class CycleDetectorTest {
@@ -66,13 +65,7 @@ public class CycleDetectorTest {
CycleDetector<String> cycleDetector = new CycleDetector<String>(dcg);
cycleDetector.detectCycles();
assertThat(cycleDetector.getCycles()).hasSize(8);
-
- if (SystemUtils.IS_JAVA_1_6 || SystemUtils.IS_JAVA_1_7) {
- assertThat(cycleDetector.getSearchCyclesCalls()).isEqualTo(8);
- } else {
- // Java 8
- assertThat(cycleDetector.getSearchCyclesCalls()).isEqualTo(11);
- }
+ assertThat(cycleDetector.getSearchCyclesCalls()).isEqualTo(11);
}
@Test