From 6b71b52fde2bc496ee84c87b79a4a186e8f78774 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 4 Sep 2018 16:08:00 +0200 Subject: SONAR-11212 Distinguish predefined and ad hoc external rules --- .../src/test/java/org/sonar/server/rule/ExternalRuleCreatorTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'server/sonar-server-common/src/test/java/org') 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"); -- cgit v1.2.3