From b8c0becf8da211ed31d728ea38eb9978223caa2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Fri, 2 Sep 2016 13:53:52 +0200 Subject: [PATCH] add DbTest#select(DbSession, String) --- sonar-db/src/test/java/org/sonar/db/DbTester.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5