aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2017-07-06 15:03:29 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-07-07 09:42:54 +0200
commit539c34e510ed4998d8dc0e6a4958d5fc49ffcc84 (patch)
tree502ca5a20c15a6b5db2aef70d6aa9de288a0fca4 /sonar-scanner-engine
parent34ec38c33a375755fe97db021175d2008367bb90 (diff)
downloadsonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.tar.gz
sonarqube-539c34e510ed4998d8dc0e6a4958d5fc49ffcc84.zip
SONAR-8546 Add medium test
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java
index f75bd498bc3..31d259acd11 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/cpd/CpdMediumTest.java
@@ -53,7 +53,7 @@ public class CpdMediumTest {
@Parameters(name = "new api: {0}")
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
- {true}, {false}
+ {true, false}, {true, true}, {false, false}
});
}
@@ -79,9 +79,11 @@ public class CpdMediumTest {
private ImmutableMap.Builder<String, String> builder;
private boolean useNewSensorApi;
+ private boolean useDeprecatedProperty;
- public CpdMediumTest(boolean useNewSensorApi) {
+ public CpdMediumTest(boolean useNewSensorApi, boolean useDeprecatedProperty) {
this.useNewSensorApi = useNewSensorApi;
+ this.useDeprecatedProperty = useDeprecatedProperty;
}
@Before
@@ -99,7 +101,7 @@ public class CpdMediumTest {
.put("sonar.projectVersion", "1.0-SNAPSHOT")
.put("sonar.projectDescription", "Description of Foo Project");
if (useNewSensorApi) {
- builder.put(CpdTokenizerSensor.ENABLE_PROP, "true");
+ builder.put(CpdTokenizerSensor.ENABLE_PROP + (useDeprecatedProperty ? ".deprecated" : ""), "true");
}
}