Package ch.inftec.ju.db

Examples of ch.inftec.ju.db.TxHandler.commit()


    SystemPropertyTempSetter tempSetter = handler.initContainerTestEnv();
   
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      // Execute post test annotations (dataset exporting, data verifying)
      handler.executePreTestAnnotations(new JuEmUtil(this.em));
      txHandler.commit(); // Commit after data verifying / exporting
    } catch (Exception ex) {
      // Reset properties in case of an exception
      tempSetter.close();
      throw ex;
    }
View Full Code Here


  //    this.dateProvider.resetProvider();
     
      // Run the test method
      handler.executeTestMethod();

      txHandler.commit(); // Perform a commit after the execution of the test method
    }
  }
 
  @Override
  public void runPostTestActionsInEjbContext(TestRunnerAnnotationHandler handler) throws Exception {
View Full Code Here

  public void runPostTestActionsInEjbContext(TestRunnerAnnotationHandler handler) throws Exception {
    // Run post server annotations in an own annotation so any changed made there is available in the export / verifying phase
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      // Execute post test annotations (dataset exporting, data verifying)
      handler.executePostServerCode(new JuEmUtil(this.em));
      txHandler.commit(); // Commit after data verifying / exporting
    }
   
    // Run post test annotations (export, verify)
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      // Execute post test annotations (dataset exporting, data verifying)
View Full Code Here

   
    // Run post test annotations (export, verify)
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      // Execute post test annotations (dataset exporting, data verifying)
      handler.executePostTestAnnotations(new JuEmUtil(this.em));
      txHandler.commit(); // Commit after data verifying / exporting
    }
  }


  @Override
View Full Code Here

      Object instance = clazz.newInstance();
     
      Method method = clazz.getMethod(methodName, argumentTypes);
      Object res = method.invoke(instance, args);
     
      txHandler.commit();
      return res;
    }
  }
 
  @Override
View Full Code Here

      SystemPropertyTempSetter tempSetter = handler.initContainerTestEnv();

      try (TxHandler txHandler = new TxHandler(this.tx, true)) {
        // Execute post test annotations (dataset exporting, data verifying)
        handler.executePreTestAnnotations(new JuEmUtil(this.em));
        txHandler.commit(); // Commit after data verifying / exporting
      } catch (Exception ex) {
        // Reset properties in case of an exception
        tempSetter.close();
        throw ex;
      }
View Full Code Here

        // this.dateProvider.resetProvider();

        // Run the test method
        handler.executeTestMethod(txHandler);

        txHandler.commit(); // Perform a commit after the execution of the test method
      }
    }
  }
 
  @Override
View Full Code Here

    try (ContainerTestContextSetter s = handler.new ContainerTestContextSetter()) {
      // Run post server annotations in an own annotation so any changed made there is available in the export / verifying phase
      try (TxHandler txHandler = new TxHandler(this.tx, true)) {
        // Execute post test annotations (dataset exporting, data verifying)
        handler.executePostServerCode(new JuEmUtil(this.em));
        txHandler.commit(); // Commit after data verifying / exporting
      }

      // Run post test annotations (export, verify)
      try (TxHandler txHandler = new TxHandler(this.tx, true)) {
        // Execute post test annotations (dataset exporting, data verifying)
View Full Code Here

      // Run post test annotations (export, verify)
      try (TxHandler txHandler = new TxHandler(this.tx, true)) {
        // Execute post test annotations (dataset exporting, data verifying)
        handler.executePostTestAnnotations(new JuEmUtil(this.em));
        txHandler.commit(); // Commit after data verifying / exporting
      }
    }
  }

View Full Code Here

      Object instance = clazz.newInstance();
     
      Method method = clazz.getMethod(methodName, argumentTypes);
      Object res = method.invoke(instance, args);
     
      txHandler.commit();
      return res;
    }
  }

  @Override
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.