diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-14 08:59:17 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-14 09:00:24 +0100 |
commit | d4d6c8a1e01d5b09ff518d1723b96719510eeee1 (patch) | |
tree | 7a83fa0f786ceeb9123e0ff9ec738cbadf832d13 /sonar-batch/src/test | |
parent | ad1ac7b36f060a67902669495c4e377f06ef643e (diff) | |
download | sonarqube-d4d6c8a1e01d5b09ff518d1723b96719510eeee1.tar.gz sonarqube-d4d6c8a1e01d5b09ff518d1723b96719510eeee1.zip |
Fix SourcePersisterTest
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java | 2 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java index 2edd8925c59..92fac0e8fa5 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java @@ -153,7 +153,7 @@ public class SourcePersisterTest extends AbstractDaoTestCase { String relativePathEmpty = "src/empty.java"; DefaultInputFile inputFileEmpty = new DefaultInputFile(PROJECT_KEY, relativePathEmpty) .setLines(0) - .setHash("") + .setHash(null) .setLineHashes(new byte[][] {}); when(inputPathCache.all()).thenReturn(Arrays.<InputPath>asList(inputFileEmpty)); diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml index 4fa778702d5..f1ed70ee380 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml @@ -8,7 +8,7 @@ <file_sources id="102" project_uuid="projectUuid" file_uuid="uuidempty" data="[null]" line_hashes="[null]" - src_hash="" + src_hash="[null]" data_hash="0" created_at="1414597442000" updated_at="1414597442000" /> </dataset> |