]> source.dussan.org Git - sonarqube.git/commitdiff
Fix SourcePersisterTest
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 14 Jan 2015 07:59:17 +0000 (08:59 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 14 Jan 2015 08:00:24 +0000 (09:00 +0100)
sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java
sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml

index 2edd8925c59597564cdd6c32d8866111f6eb2dc4..92fac0e8fa5e7dbb124080f2b565464d14a0a919 100644 (file)
@@ -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));
 
index 4fa778702d5e7432df604e1c31db16642c2a67c2..f1ed70ee380111c7e7b1474c976374c0c16f85c8 100644 (file)
@@ -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>