diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-07 23:23:23 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-07 23:23:23 +0000 |
commit | 3cc63963cfd20176c605c27f023fb6e70db69b80 (patch) | |
tree | eed6fd559c6877052a4ef3ce2c0ebb845c41ea66 /sonar-core/src/test/java | |
parent | 0b9d0acd74b08a9076cd982684f0be8285c94251 (diff) | |
download | sonarqube-3cc63963cfd20176c605c27f023fb6e70db69b80.tar.gz sonarqube-3cc63963cfd20176c605c27f023fb6e70db69b80.zip |
SONAR-1549 The Sonar profile creation form doesn't allow to import checkstyle,pmd and Findbugs conf files when several langages are defined
SONAR-440 add warnings to checkstyle when importing configuration
Diffstat (limited to 'sonar-core/src/test/java')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/rule/DefaultRuleProviderTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/rule/DefaultRuleProviderTest.java b/sonar-core/src/test/java/org/sonar/core/rule/DefaultRuleProviderTest.java index 10830c4256f..69287804e8c 100644 --- a/sonar-core/src/test/java/org/sonar/core/rule/DefaultRuleProviderTest.java +++ b/sonar-core/src/test/java/org/sonar/core/rule/DefaultRuleProviderTest.java @@ -45,6 +45,14 @@ public class DefaultRuleProviderTest extends AbstractDbUnitTestCase { } @Test + public void findReturnsNullIfNoResults() { + setupData("shared"); + DefaultRuleProvider provider = new DefaultRuleProvider(getSessionFactory()); + assertNull(provider.findByKey("checkstyle", "unknown")); + assertNull(provider.find(RuleQuery.create().withRepositoryKey("checkstyle").withConfigKey("unknown"))); + } + + @Test public void findRepositoryRules() { setupData("shared"); DefaultRuleProvider provider = new DefaultRuleProvider(getSessionFactory()); |