Examples of RunIn


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

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

   *
   * @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
Copyright © 2018 www.massapi.com. 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.