From d2673b56781ac7d1f359a291f6294c015131fb6d Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 5 Jul 2022 17:53:50 +0200 Subject: SONAR-16598 Add new generic concepts to rules/show and rules/search endpoints --- .../src/testFixtures/java/org/sonar/db/rule/RuleTesting.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/sonar-db-dao/src/testFixtures') diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/rule/RuleTesting.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/rule/RuleTesting.java index c2a064c6a43..87e7ed0dde5 100644 --- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/rule/RuleTesting.java +++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/rule/RuleTesting.java @@ -118,7 +118,8 @@ public class RuleTesting { .setAdHocType(RuleType.values()[nextInt(RuleType.values().length - 1)]) .setCreatedAt(currentTimeMillis) .setUpdatedAt(currentTimeMillis + 5) - .setScope(Scope.MAIN); + .setScope(Scope.MAIN) + .setGenericConcepts(Set.of(randomAlphanumeric(5), randomAlphanumeric(5))); } public static RuleParamDto newRuleParam(RuleDto rule) { -- cgit v1.2.3