aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-07-01 18:47:44 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-07-01 18:48:05 +0200
commitda03d2e8386d74283212a3f66ecf13eaa640367f (patch)
tree29aac45c00aff382680c0da6addb7ea13665576a /plugins
parent313fe9a7fb0ed72ba098265c0b45d4ea44340000 (diff)
downloadsonarqube-da03d2e8386d74283212a3f66ecf13eaa640367f.tar.gz
sonarqube-da03d2e8386d74283212a3f66ecf13eaa640367f.zip
Fix quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/UnitTestDecoratorTest.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/UnitTestDecoratorTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/UnitTestDecoratorTest.java
index 86b43609ec6..007fb9c083b 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/UnitTestDecoratorTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/sensors/UnitTestDecoratorTest.java
@@ -21,7 +21,6 @@ package org.sonar.plugins.core.sensors;
import org.hamcrest.Matchers;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.sonar.api.batch.DecoratorContext;
import org.sonar.api.measures.CoreMetrics;
@@ -34,10 +33,8 @@ import java.util.Arrays;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Matchers.doubleThat;
import static org.mockito.Matchers.eq;
-import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;
public class UnitTestDecoratorTest {
@@ -88,18 +85,4 @@ public class UnitTestDecoratorTest {
private void mockChildrenMeasures(Metric metric, double value) {
when(context.getChildrenMeasures(metric)).thenReturn(Arrays.asList(new Measure(metric, value), new Measure(metric, value)));
}
-
- @Test
- @Ignore("Hack for SONAR-5212")
- public void doNotDecorateIfTestsMeasureAlreadyExists() {
- Project project = mock(Project.class);
- when(context.getMeasure(CoreMetrics.TESTS)).thenReturn(new Measure());
-
- decorator.decorate(project, context);
-
- assertThat(decorator.shouldDecorateResource(project, context)).isFalse();
- verify(context, atLeastOnce()).getMeasure(CoreMetrics.TESTS);
- verifyNoMoreInteractions(context);
- }
-
}