1 16 package scriptella.core; 17 18 import scriptella.spi.Connection; 19 import scriptella.spi.ConnectionParameters; 20 21 import java.util.List ; 22 import java.util.Map ; 23 24 25 28 public class SqlTestHelper { 29 public static Map <String , ConnectionManager> getConnections( 30 final Session engine) { 31 return engine.managedConnections; 32 } 33 34 public static Connection getConnection(final ConnectionManager cf) { 35 return cf.connection; 36 } 37 38 public static List <Connection> getNewConnections(final ConnectionManager cf) { 39 return cf.newConnections; 40 } 41 42 public static ConnectionParameters getConnectionParameters(ConnectionManager cm) { 43 return cm.connectionParameters; 44 } 45 } 46 | Popular Tags |