@Override public void runPostTestActionsInEjbContext(TestRunnerAnnotationHandler handler) throws Exception { 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) handler.executePostTestAnnotations(new JuEmUtil(this.em)); txHandler.commit(); // Commit after data verifying / exporting } } }
@Override public void runPostTestActionsInEjbContext(TestRunnerAnnotationHandler handler) throws Exception { 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) handler.executePostTestAnnotations(new JuEmUtil(this.em)); txHandler.commit(); // Commit after data verifying / exporting } } }