diff options
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r-- | server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDbTester.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDbTester.java b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDbTester.java index 69997d7427b..5d1f6b7973f 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDbTester.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/component/ComponentDbTester.java @@ -171,4 +171,10 @@ public class ComponentDbTester { db.commit(); return snapshot; } + + public void insertSnapshots(SnapshotDto... snapshotDtos) { + dbClient.snapshotDao().insert(dbSession, asList(snapshotDtos)); + db.commit(); + } + } |