aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/testFixtures
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2022-07-05 17:53:50 +0200
committersonartech <sonartech@sonarsource.com>2022-07-08 20:02:47 +0000
commitd2673b56781ac7d1f359a291f6294c015131fb6d (patch)
tree19ec9d15ee64230ab26509380d0a5e31d8992605 /server/sonar-db-dao/src/testFixtures
parent342a908193106928522b2c344735251429f037e7 (diff)
downloadsonarqube-d2673b56781ac7d1f359a291f6294c015131fb6d.tar.gz
sonarqube-d2673b56781ac7d1f359a291f6294c015131fb6d.zip
SONAR-16598 Add new generic concepts to rules/show and rules/search endpoints
Diffstat (limited to 'server/sonar-db-dao/src/testFixtures')
-rw-r--r--server/sonar-db-dao/src/testFixtures/java/org/sonar/db/rule/RuleTesting.java3
1 files changed, 2 insertions, 1 deletions
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) {