aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-01-03 11:09:55 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2013-01-03 18:36:15 +0100
commit67feeef54e28e7f61fcb4458a7024d7320b79626 (patch)
tree2626f0337f20644ceb13eebff92c229e5802f7f1 /src/test
parent93b9f302e3abe15bbaa5e7bc005392f2e7a7ad89 (diff)
downloadsonar-scanner-cli-67feeef54e28e7f61fcb4458a7024d7320b79626.tar.gz
sonar-scanner-cli-67feeef54e28e7f61fcb4458a7024d7320b79626.zip
Remove deprecations.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java b/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
index 3c51885..366c20f 100644
--- a/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
+++ b/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
@@ -411,16 +411,16 @@ public class SonarProjectBuilderTest {
public void shouldFailIf2ModulesWithSameKey() {
Properties props = new Properties();
props.put("sonar.projectKey", "root");
- ProjectDefinition root = ProjectDefinition.create(props);
+ ProjectDefinition root = ProjectDefinition.create().setProperties(props);
Properties props1 = new Properties();
props1.put("sonar.projectKey", "mod1");
- root.addSubProject(ProjectDefinition.create(props1));
+ root.addSubProject(ProjectDefinition.create().setProperties(props1));
// Check uniqueness of a new module: OK
Properties props2 = new Properties();
props2.put("sonar.projectKey", "mod2");
- ProjectDefinition mod2 = ProjectDefinition.create(props2);
+ ProjectDefinition mod2 = ProjectDefinition.create().setProperties(props2);
SonarProjectBuilder.checkUniquenessOfChildKey(mod2, root);
// Now, add it and check again