aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-es
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-05-20 12:15:50 +0200
committersonartech <sonartech@sonarsource.com>2022-05-24 20:10:14 +0000
commitf05edf50468fca40be695a0519fe962a020d26b1 (patch)
treede6cc70eda7eabf94c14ff040177f6d6eb8b4f5b /server/sonar-webserver-es
parentec85c6ac6c0a29f27eb241dff4445be8ad07e727 (diff)
downloadsonarqube-f05edf50468fca40be695a0519fe962a020d26b1.tar.gz
sonarqube-f05edf50468fca40be695a0519fe962a020d26b1.zip
SONAR-16419 merge rules and rules metadata in single table and DTO
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r--server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
index 50493b8252d..649e3f5abb8 100644
--- a/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
+++ b/server/sonar-webserver-es/src/test/java/org/sonar/server/issue/index/IssueQueryFactoryTest.java
@@ -80,10 +80,8 @@ public class IssueQueryFactoryTest {
ComponentDto module = db.components().insertComponent(newModuleDto(project));
ComponentDto file = db.components().insertComponent(newFileDto(project));
- RuleDto rule1 = ruleDbTester.insert();
- RuleDto rule2 = ruleDbTester.insert();
- ruleDbTester.insertOrUpdateMetadata(rule1, m -> m.setAdHocName(ruleAdHocName));
- ruleDbTester.insertOrUpdateMetadata(rule2, m -> m.setAdHocName(ruleAdHocName));
+ RuleDto rule1 = ruleDbTester.insert(r -> r.setAdHocName(ruleAdHocName));
+ RuleDto rule2 = ruleDbTester.insert(r -> r.setAdHocName(ruleAdHocName));
newRule(RuleKey.of("findbugs", "NullReference"));
SearchRequest request = new SearchRequest()
.setIssues(asList("anIssueKey"))