aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-12 11:58:29 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-06-12 11:58:29 +0200
commit5105c84b6310750a73e5ad46ac0fda03e35b0720 (patch)
tree5b45d6cf5caf0edf72d4d95b94d634895cc8a824 /sonar-deprecated
parent0ebe203200cd2ff3778a61887e5e552c4d542854 (diff)
downloadsonarqube-5105c84b6310750a73e5ad46ac0fda03e35b0720.tar.gz
sonarqube-5105c84b6310750a73e5ad46ac0fda03e35b0720.zip
SONAR-5351 Create a migration to replace rules.parent_id to rules.template_id
Diffstat (limited to 'sonar-deprecated')
-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);