From de0e17fd55c6edf8f41cba1bf7dac73303d6e589 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Tue, 1 Jul 2014 10:11:03 +0200 Subject: [PATCH] SONAR-5007 - Assert ID is preset in Rule domain Object from RuleFinder --- .../org/sonar/server/rule/DefaultRuleFinderMediumTest.java | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.39.5