aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/index/MeasurePersisterTest.java')
-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) {