aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common/src/test/java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-09-04 16:08:00 +0200
committerSonarTech <sonartech@sonarsource.com>2018-09-24 20:20:57 +0200
commit6b71b52fde2bc496ee84c87b79a4a186e8f78774 (patch)
treeacf0d9e4c0cd93d08e57e95c483f01c90d3e0164 /server/sonar-server-common/src/test/java
parente5f73ecf404ab7342a772fd5630835c7893e0c84 (diff)
downloadsonarqube-6b71b52fde2bc496ee84c87b79a4a186e8f78774.tar.gz
sonarqube-6b71b52fde2bc496ee84c87b79a4a186e8f78774.zip
SONAR-11212 Distinguish predefined and ad hoc external rules
Diffstat (limited to 'server/sonar-server-common/src/test/java')
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java
index 32b9d329e79..59d4d28fcfe 100644
--- a/server/sonar-server-common/src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java
+++ b/server/sonar-server-common/src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java
@@ -54,6 +54,7 @@ public class ExternalRuleCreatorTest {
assertThat(rule1).isNotNull();
assertThat(rule1.isExternal()).isTrue();
+ assertThat(rule1.isAdHoc()).isTrue();
assertThat(rule1.getId()).isGreaterThan(0);
assertThat(rule1.getKey()).isEqualTo(ruleKey);
assertThat(rule1.getPluginKey()).isEqualTo("eslint");