From 67feeef54e28e7f61fcb4458a7024d7320b79626 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 3 Jan 2013 11:09:55 +0100 Subject: Remove deprecations. --- .../org/sonar/runner/internal/batch/SonarProjectBuilderTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') 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 -- cgit v1.2.3