aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-deprecated/src')
-rw-r--r--sonar-deprecated/src/test/java/org/sonar/api/checks/AnnotationCheckFactoryTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-deprecated/src/test/java/org/sonar/api/checks/AnnotationCheckFactoryTest.java b/sonar-deprecated/src/test/java/org/sonar/api/checks/AnnotationCheckFactoryTest.java
index 7a12a023ea7..eb4ac6354ae 100644
--- a/sonar-deprecated/src/test/java/org/sonar/api/checks/AnnotationCheckFactoryTest.java
+++ b/sonar-deprecated/src/test/java/org/sonar/api/checks/AnnotationCheckFactoryTest.java
@@ -30,9 +30,7 @@ import java.util.Arrays;
import static org.fest.assertions.Assertions.assertThat;
import static org.hamcrest.core.Is.is;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
+import static org.junit.Assert.*;
public class AnnotationCheckFactoryTest {
@@ -158,7 +156,7 @@ public class AnnotationCheckFactoryTest {
public void shouldWorkWithClonedRules() {
RulesProfile profile = RulesProfile.create("repo", "java");
Rule rule = Rule.create("repo", "CheckWithKey", "");
- Rule clonedRule = Rule.create("repo", "CheckWithKey_2", "").setConfigKey("CheckWithKey").setParent(rule);
+ Rule clonedRule = Rule.create("repo", "CheckWithKey_2", "").setConfigKey("CheckWithKey").setTemplate(rule);
profile.activateRule(rule, null);
profile.activateRule(clonedRule, null);