*
* @return
*/
public Connection connect() throws SQLException {
this.hasTransaction = false;
RunIn runIn = DbFitContext.getRunIn();
if (runIn == RunIn.TestCase) {
boolean springAvailable = ClazzHelper.isClassAvailable(ClazzConst.Spring_DataSourceUtils);
hasTransaction = springAvailable && TestedObject.isTransactionsEnabled();
}
this.dataSourceProxy = getDataSource(hasTransaction);