aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/testFixtures/java
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2022-01-13 11:08:07 +0100
committersonartech <sonartech@sonarsource.com>2022-01-21 20:03:22 +0000
commitc27e6f711185a6b6b64e381f9c8b152b4ac999e8 (patch)
tree69dbd7d6176cd6411ce057f3d21b55175bf14370 /server/sonar-db-dao/src/testFixtures/java
parent573f47d57bc4cc52235a22066d81b6be7dee4f3c (diff)
downloadsonarqube-c27e6f711185a6b6b64e381f9c8b152b4ac999e8.tar.gz
sonarqube-c27e6f711185a6b6b64e381f9c8b152b4ac999e8.zip
SONAR-14929 - Purge new_code_reference_issues when issues are deleted
Diffstat (limited to 'server/sonar-db-dao/src/testFixtures/java')
-rw-r--r--server/sonar-db-dao/src/testFixtures/java/org/sonar/db/issue/IssueDbTester.java8
1 files changed, 8 insertions, 0 deletions
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();
+ }
+
}