diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-07-23 12:31:30 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-07-23 13:47:57 +0200 |
commit | db4af09e8b2c1f44f25a689c3165f5f6d8c01126 (patch) | |
tree | 64431cd464be647b9439c422d40b608926639c74 /sonar-batch | |
parent | d55de7dbda057f2aeb56d9d1b047da65510bd7c3 (diff) | |
download | sonarqube-db4af09e8b2c1f44f25a689c3165f5f6d8c01126.tar.gz sonarqube-db4af09e8b2c1f44f25a689c3165f5f6d8c01126.zip |
SONAR-6605 forgotten Formula in CoreMetrics for Metrics moved to CE
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/deprecated/decorator/FormulaDecoratorTest.java | 14 | ||||
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java | 4 |
2 files changed, 5 insertions, 13 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/deprecated/decorator/FormulaDecoratorTest.java b/sonar-batch/src/test/java/org/sonar/batch/deprecated/decorator/FormulaDecoratorTest.java index 2298a09cb33..075e77efffd 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/deprecated/decorator/FormulaDecoratorTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/deprecated/decorator/FormulaDecoratorTest.java @@ -19,6 +19,9 @@ */ package org.sonar.batch.deprecated.decorator; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; import org.junit.Test; import org.sonar.api.batch.DecoratorContext; import org.sonar.api.measures.CoreMetrics; @@ -29,13 +32,7 @@ import org.sonar.api.measures.Measure; import org.sonar.api.measures.Metric; import org.sonar.api.test.IsMeasure; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - import static org.assertj.core.api.Assertions.assertThat; -import static org.hamcrest.core.Is.is; -import static org.junit.Assert.assertThat; import static org.mockito.Matchers.any; import static org.mockito.Matchers.argThat; import static org.mockito.Mockito.mock; @@ -46,11 +43,6 @@ import static org.mockito.Mockito.when; public class FormulaDecoratorTest { @Test - public void doAlwaysExecute() { - assertThat(new FormulaDecorator(CoreMetrics.LINES).shouldExecuteOnProject(null), is(true)); - } - - @Test public void declareDependencies() { Formula formula = new Formula() { public List<Metric> dependsUponMetrics() { diff --git a/sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java b/sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java index 10f7657e886..ae97beaec18 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java @@ -67,7 +67,7 @@ public class MeasuresMediumTest { .newScanTask(new File(tmpDir, "sonar-project.properties")) .start(); - assertThat(result.allMeasures()).hasSize(18); + assertThat(result.allMeasures()).hasSize(13); } @Test @@ -94,7 +94,7 @@ public class MeasuresMediumTest { .build()) .start(); - assertThat(result.allMeasures()).hasSize(4); + assertThat(result.allMeasures()).hasSize(2); assertThat(result.allMeasures()).contains(new DefaultMeasure<Integer>() .forMetric(CoreMetrics.LINES) |