]> source.dussan.org Git - sonarqube.git/commitdiff
Fix UT
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 20 Jun 2014 16:09:24 +0000 (18:09 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 20 Jun 2014 16:09:24 +0000 (18:09 +0200)
sonar-server/src/test/java/org/sonar/server/rule/RegisterRulesTest.java

index 88ab7080b19b0a61db7ceae632c66431afa2140d..660566c73c40c2aaab0e4a167e38b47aaf4f6edf 100644 (file)
@@ -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<RuleParamDto> 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<RuleParamDto> params = dbClient.ruleDao().findRuleParamsByRuleKey(dbSession, ruleKey1);
     assertThat(params).hasSize(2);
@@ -310,4 +309,3 @@ public class RegisterRulesTest extends AbstractDaoTestCase {
     }
   }
 }
-