]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 - Assert ID is preset in Rule domain Object from RuleFinder
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 08:11:03 +0000 (10:11 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 08:11:21 +0000 (10:11 +0200)
sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java

index 53900468d40b980210765a6cfd18cf5f52b9d28b..c683d6234f00ed711c4d49b625ef8bc95c657c03 100644 (file)
@@ -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");