Package ch.inftec.ju.db

Examples of ch.inftec.ju.db.JuEmUtil


  @Override
  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)
      handler.executePostTestAnnotations(new JuEmUtil(this.em));
      txHandler.commit(); // Commit after data verifying / exporting
    }
  }
View Full Code Here


 
  @Override
  public final void init() {
    this.serviceLocator = ServiceLocatorBuilder.buildLocal().createServiceLocator();
    this.em = this.serviceLocator.cdi(EntityManager.class);
    this.emUtil = new JuEmUtil(this.em);
   
    this.doInit();
  }
View Full Code Here

TOP

Related Classes of ch.inftec.ju.db.JuEmUtil

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.