From: Stephane Gamard Date: Tue, 1 Jul 2014 08:11:03 +0000 (+0200) Subject: SONAR-5007 - Assert ID is preset in Rule domain Object from RuleFinder X-Git-Tag: 4.4-RC1~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de0e17fd55c6edf8f41cba1bf7dac73303d6e589;p=sonarqube.git SONAR-5007 - Assert ID is preset in Rule domain Object from RuleFinder --- diff --git a/sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java b/sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java index 53900468d40..c683d6234f0 100644 --- a/sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java +++ b/sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java @@ -95,6 +95,9 @@ public class DefaultRuleFinderMediumTest { @Test public void should_success_finder_wrap() { + // has Id + Assertions.assertThat(finder.findById(1).getId()).isEqualTo(1); + // should_find_by_id Assertions.assertThat(finder.findById(3).getConfigKey()).isEqualTo("Checker/Treewalker/AnnotationUseStyleCheck");