Skip to content

Commit 1b8e004

Browse files
SONARJAVA-5239 Remove obsolete test that uses removed SonarQube metric (#4955)
1 parent dabf7fb commit 1b8e004

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

its/plugin/tests/src/test/java/com/sonar/it/java/suite/JavaComplexityTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.junit.Test;
2727
import org.sonarqube.ws.Issues.Issue;
2828

29-
import static com.sonar.it.java.suite.JavaTestSuite.getMeasure;
3029
import static com.sonar.it.java.suite.JavaTestSuite.getMeasureAsInteger;
3130
import static org.assertj.core.api.Assertions.assertThat;
3231

@@ -87,11 +86,6 @@ public void testProjectComplexity() {
8786
assertThat(getMeasureAsInteger(PROJECT, "complexity")).isEqualTo(16);
8887
}
8988

90-
@Test
91-
public void shouldNotPersistDistributionOnFiles() {
92-
assertThat(getMeasure(JavaTestSuite.keyFor(PROJECT, "complexity/", "Helloworld.java"), "function_complexity_distribution")).isNull();
93-
}
94-
9589
@Test
9690
public void complexity_sqale_computation() {
9791
List<Issue> issues = TestUtils.issuesForComponent(orchestrator, PROJECT);

0 commit comments

Comments
 (0)