From: Julien Lancelot Date: Fri, 20 Jun 2014 16:09:24 +0000 (+0200) Subject: Fix UT X-Git-Tag: 4.4-RC1~229 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5de8f9f594279b6bf366e8eb5db63d16f90de800;p=sonarqube.git Fix UT --- diff --git a/sonar-server/src/test/java/org/sonar/server/rule/RegisterRulesTest.java b/sonar-server/src/test/java/org/sonar/server/rule/RegisterRulesTest.java index 88ab7080b19..660566c73c4 100644 --- a/sonar-server/src/test/java/org/sonar/server/rule/RegisterRulesTest.java +++ b/sonar-server/src/test/java/org/sonar/server/rule/RegisterRulesTest.java @@ -91,7 +91,6 @@ public class RegisterRulesTest extends AbstractDaoTestCase { assertThat(rule1.getStatus()).isEqualTo(RuleStatus.BETA); assertThat(rule1.getCreatedAt()).isEqualTo(DATE1); assertThat(rule1.getUpdatedAt()).isEqualTo(DATE1); - assertThat(rule1.getEffortToFixDescription()).isEqualTo("squid.S115.effortToFix"); // TODO check characteristic and remediation function List params = dbClient.ruleDao().findRuleParamsByRuleKey(dbSession, ruleKey1); @@ -145,7 +144,7 @@ public class RegisterRulesTest extends AbstractDaoTestCase { assertThat(rule1.getStatus()).isEqualTo(RuleStatus.READY); assertThat(rule1.getCreatedAt()).isEqualTo(DATE1); assertThat(rule1.getUpdatedAt()).isEqualTo(DATE2); - assertThat(rule1.getEffortToFixDescription()).isEqualTo("squid.S115.effortToFix.v2"); + // TODO check characteristic and remediation function List params = dbClient.ruleDao().findRuleParamsByRuleKey(dbSession, ruleKey1); assertThat(params).hasSize(2); @@ -310,4 +309,3 @@ public class RegisterRulesTest extends AbstractDaoTestCase { } } } -