aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test/java/org/sonar/batch/phases
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2013-09-19 16:17:48 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2013-09-19 16:17:48 +0200
commit6a802d0faaf7964aecf4eac524329f79f64611ea (patch)
tree4995533315aca2c2f5a944a5ec63bdd4c8a590e8 /sonar-batch/src/test/java/org/sonar/batch/phases
parent1666e33d7e4072c8870f6d4fd9d654659c5506f1 (diff)
downloadsonarqube-6a802d0faaf7964aecf4eac524329f79f64611ea.tar.gz
sonarqube-6a802d0faaf7964aecf4eac524329f79f64611ea.zip
SONAR-766 Filter measures at decorator level (fix issue highlighted by .Net coverage reporting)
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/phases')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/phases/DecoratorsExecutorTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/phases/DecoratorsExecutorTest.java b/sonar-batch/src/test/java/org/sonar/batch/phases/DecoratorsExecutorTest.java
index 7d7a132aa30..6330c25c828 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/phases/DecoratorsExecutorTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/phases/DecoratorsExecutorTest.java
@@ -19,6 +19,8 @@
*/
package org.sonar.batch.phases;
+import org.sonar.core.measure.MeasurementFilters;
+
import org.junit.Test;
import org.sonar.api.batch.BatchExtensionDictionnary;
import org.sonar.api.batch.Decorator;
@@ -30,7 +32,6 @@ import org.sonar.api.resources.Resource;
import org.sonar.api.utils.SonarException;
import org.sonar.batch.DefaultDecoratorContext;
import org.sonar.batch.events.EventBus;
-
import static org.hamcrest.number.OrderingComparisons.greaterThanOrEqualTo;
import static org.hamcrest.number.OrderingComparisons.lessThan;
import static org.junit.Assert.assertThat;
@@ -66,7 +67,7 @@ public class DecoratorsExecutorTest {
doThrow(new SonarException()).when(decorator).decorate(any(Resource.class), any(DecoratorContext.class));
DecoratorsExecutor executor = new DecoratorsExecutor(mock(BatchExtensionDictionnary.class), new Project("key"), mock(SonarIndex.class),
- mock(EventBus.class));
+ mock(EventBus.class), mock(MeasurementFilters.class));
try {
executor.executeDecorator(decorator, mock(DefaultDecoratorContext.class), new File("org/foo/Bar.java"));
fail("Exception has not been thrown");