aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-09-24 08:02:35 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-09-24 08:02:35 +0200
commiteac9c2698d8d64b0e1fe46265286dba80ee31db3 (patch)
tree472f13b75f0bcc2ee6bc16eb71dca9f466589a55 /sonar-batch/src
parentc1a1b241c8b2cb39e8e113b8ed01ee0c9e195c1f (diff)
downloadsonarqube-eac9c2698d8d64b0e1fe46265286dba80ee31db3.tar.gz
sonarqube-eac9c2698d8d64b0e1fe46265286dba80ee31db3.zip
Method renaming
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
index e3e5407f0c5..82b7abe50c3 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
@@ -261,6 +261,9 @@ public class MeasurePersisterTest extends AbstractDaoTestCase {
@Test
public void should_not_save_measures_without_data() {
assertThat(MeasurePersister.shouldPersistMeasure(aFile, new Measure(CoreMetrics.LINES))).isFalse();
+
+ Measure duplicatedLines = new Measure(CoreMetrics.DUPLICATED_LINES_DENSITY);
+ assertThat(MeasurePersister.shouldPersistMeasure(aFile, duplicatedLines)).isFalse();
}
private static Snapshot snapshot(int id) {