Package org.jtester.core.context.DbFitContext

Examples of org.jtester.core.context.DbFitContext.RunIn


    try {
      JTesterLogger.info("tearDown dbfit table");
      if (environment == null) {
        return;
      }
      RunIn runIn = DbFitContext.getRunIn();
      boolean isEnabledTransaction = TestedObject.isTransactionsEnabled();
      if (runIn == RunIn.TestCase) {
        JTesterLogger.info("run in testcase, isEnabledTransaction:" + isEnabledTransaction);
      }
View Full Code Here


   *
   * @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);
View Full Code Here

TOP

Related Classes of org.jtester.core.context.DbFitContext.RunIn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.