diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-05-20 16:19:50 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-05-20 16:20:19 +0200 |
commit | e490ee5188bc25eab1cd03fbd9f2df55301db370 (patch) | |
tree | 9ad3a45b29da5e8125fac7011a5b4632bca08636 /sonar-batch | |
parent | cbc10f14e78e8bec13bf12337c410e55ade8fa94 (diff) | |
download | sonarqube-e490ee5188bc25eab1cd03fbd9f2df55301db370.tar.gz sonarqube-e490ee5188bc25eab1cd03fbd9f2df55301db370.zip |
Fix UT
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/rule/QProfileSensorTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/rule/QProfileSensorTest.java b/sonar-batch/src/test/java/org/sonar/batch/rule/QProfileSensorTest.java index 85f2509d874..ff6c824ca1f 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/rule/QProfileSensorTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/rule/QProfileSensorTest.java @@ -34,7 +34,6 @@ import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Matchers.argThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyZeroInteractions; import static org.mockito.Mockito.when; public class QProfileSensorTest extends AbstractDaoTestCase { @@ -62,7 +61,7 @@ public class QProfileSensorTest extends AbstractDaoTestCase { sensor.analyse(project, sensorContext); // measures are not saved - verifyZeroInteractions(sensorContext); + verify(sensorContext).saveMeasure(argThat(new IsMeasure(CoreMetrics.PROFILES, "[]"))); } @Test |