From f05edf50468fca40be695a0519fe962a020d26b1 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Fri, 20 May 2022 12:15:50 +0200 Subject: SONAR-16419 merge rules and rules metadata in single table and DTO --- .../java/org/sonar/server/issue/index/IssueQueryFactoryTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/sonar-webserver-es') 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")) -- cgit v1.2.3