]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw (method naming)
authorStephane Gamard <stephane.gamard@searchbox.com>
Fri, 30 May 2014 09:46:04 +0000 (11:46 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Fri, 30 May 2014 09:46:13 +0000 (11:46 +0200)
sonar-server/src/test/java/org/sonar/server/qualityprofile/RuleActivatorMediumTest.java

index 9206c32dd89272b23304f22e8d5904b0d2b8023e..80217fc113c822d645b98d7cbe22eaaf148ac2ff 100644 (file)
@@ -518,7 +518,7 @@ public class RuleActivatorMediumTest {
     assertThat(activeRuleDto.getInheritance()).isEqualTo(expectedInheritance);
 
     // verify parameters in db
-    List<ActiveRuleParamDto> paramDtos = db.activeRuleDao().findParamsByActiveRule(dbSession, activeRuleDto);
+    List<ActiveRuleParamDto> paramDtos = db.activeRuleDao().findParamsByActiveRuleKey(dbSession, activeRuleDto.getKey());
     assertThat(paramDtos).hasSize(expectedParams.size());
     for (Map.Entry<String, String> entry : expectedParams.entrySet()) {
       ActiveRuleParamDto paramDto = db.activeRuleDao().getParamByKeyAndName(activeRuleDto.getKey(), entry.getKey(), dbSession);