diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-06-15 14:43:58 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-06-15 16:44:53 +0200 |
commit | 7ea59748b8e13bc83aa8cc49b7541a4060316028 (patch) | |
tree | e708ea1a3de2741cd231107b6a1049079a56a74c /server/sonar-db-dao | |
parent | 95ce527e92941b94379656c90db61c8777347c88 (diff) | |
download | sonarqube-7ea59748b8e13bc83aa8cc49b7541a4060316028.tar.gz sonarqube-7ea59748b8e13bc83aa8cc49b7541a4060316028.zip |
SONAR-9401 Return leak period in api/components/show
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(); + } + } |