From: Sébastien Lesaint Date: Fri, 2 Sep 2016 11:53:52 +0000 (+0200) Subject: add DbTest#select(DbSession, String) X-Git-Tag: 6.1-RC1~170 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8c0becf8da211ed31d728ea38eb9978223caa2a;p=sonarqube.git add DbTest#select(DbSession, String) --- diff --git a/sonar-db/src/test/java/org/sonar/db/DbTester.java b/sonar-db/src/test/java/org/sonar/db/DbTester.java index 86695a90e4e..e93f4dd21af 100644 --- a/sonar-db/src/test/java/org/sonar/db/DbTester.java +++ b/sonar-db/src/test/java/org/sonar/db/DbTester.java @@ -229,6 +229,10 @@ public class DbTester extends ExternalResource { return select(selectSql, new NewConnectionSupplier()); } + public List> select(DbSession dbSession, String selectSql) { + return select(selectSql, new DbSessionConnectionSupplier(dbSession)); + } + private List> select(String selectSql, ConnectionSupplier connectionSupplier) { try ( ConnectionSupplier supplier = connectionSupplier;