]> source.dussan.org Git - sonarqube.git/commitdiff
add DbTest#select(DbSession, String)
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 2 Sep 2016 11:53:52 +0000 (13:53 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 9 Sep 2016 07:11:42 +0000 (09:11 +0200)
sonar-db/src/test/java/org/sonar/db/DbTester.java

index 86695a90e4e867ea2e07a876db03554e32d7435e..e93f4dd21afa5d558ae6ea2a8481b459cdbfa066 100644 (file)
@@ -229,6 +229,10 @@ public class DbTester extends ExternalResource {
     return select(selectSql, new NewConnectionSupplier());
   }
 
+  public List<Map<String, Object>> select(DbSession dbSession, String selectSql) {
+    return select(selectSql, new DbSessionConnectionSupplier(dbSession));
+  }
+
   private List<Map<String, Object>> select(String selectSql, ConnectionSupplier connectionSupplier) {
     try (
       ConnectionSupplier supplier = connectionSupplier;