diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-05-20 12:15:50 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-05-24 20:10:14 +0000 |
commit | f05edf50468fca40be695a0519fe962a020d26b1 (patch) | |
tree | de6cc70eda7eabf94c14ff040177f6d6eb8b4f5b /server/sonar-webserver-es | |
parent | ec85c6ac6c0a29f27eb241dff4445be8ad07e727 (diff) | |
download | sonarqube-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.java | 6 |
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")) |