diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-07-25 17:48:43 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-08-07 11:44:06 +0200 |
commit | eacbf52a96ed3dca7652dd4f34dd604d8f9c14a2 (patch) | |
tree | fdd3c0b13ba40320ee9f953b71448ec90fa48ac5 /sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd | |
parent | 84c8b435975e605d532cc3dfb81dddcb830aa79c (diff) | |
download | sonarqube-eacbf52a96ed3dca7652dd4f34dd604d8f9c14a2.tar.gz sonarqube-eacbf52a96ed3dca7652dd4f34dd604d8f9c14a2.zip |
SONAR-9607 Do not copy unchanged source files in scanner report
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd/CpdExecutorTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd/CpdExecutorTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd/CpdExecutorTest.java index e3407fc6fe0..71d060e2f46 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd/CpdExecutorTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/cpd/CpdExecutorTest.java @@ -30,6 +30,7 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; +import org.sonar.api.batch.AnalysisMode; import org.sonar.api.batch.fs.InputFile; import org.sonar.api.batch.fs.internal.DefaultInputFile; import org.sonar.api.batch.fs.internal.DefaultInputModule; @@ -85,7 +86,7 @@ public class CpdExecutorTest { index = new SonarCpdBlockIndex(publisher, settings); DefaultInputModule inputModule = TestInputFileBuilder.newDefaultInputModule("foo", baseDir); - componentStore = new InputComponentStore(inputModule); + componentStore = new InputComponentStore(inputModule, mock(AnalysisMode.class)); executor = new CpdExecutor(settings, index, publisher, componentStore); reader = new ScannerReportReader(outputDir); |