From c27e6f711185a6b6b64e381f9c8b152b4ac999e8 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Thu, 13 Jan 2022 11:08:07 +0100 Subject: SONAR-14929 - Purge new_code_reference_issues when issues are deleted --- .../src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/sonar-db-dao/src/testFixtures/java') diff --git a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java index 31dcfe133e0..10ce0985873 100644 --- a/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java +++ b/server/sonar-db-dao/src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java @@ -218,4 +218,12 @@ public class IssueDbTester { db.commit(); } + /** + * Inserts an issue as new code in a branch using reference branch for new code + */ + public void insertNewCodeReferenceIssue(NewCodeReferenceIssueDto dto) { + db.getDbClient().issueDao().insertAsNewOnReferenceBranch(db.getSession(), dto); + db.commit(); + } + } -- cgit v1.2.3