diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 10:11:03 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 10:11:21 +0200 |
commit | de0e17fd55c6edf8f41cba1bf7dac73303d6e589 (patch) | |
tree | 72808089bf98c096f60e5f0097c21045a89b26e8 | |
parent | 486169ddd0dba69431c6e85c1be073bdaf1b795b (diff) | |
download | sonarqube-de0e17fd55c6edf8f41cba1bf7dac73303d6e589.tar.gz sonarqube-de0e17fd55c6edf8f41cba1bf7dac73303d6e589.zip |
SONAR-5007 - Assert ID is preset in Rule domain Object from RuleFinder
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/rule/DefaultRuleFinderMediumTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |