From 83283218dc44ca1e54f9e6425992391bfcd22424 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 25 May 2018 00:26:02 +0100 Subject: [PATCH] HHH-12540 - Fix test --- .../jpa/test/transaction/JtaReusingEntityTransactionTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/JtaReusingEntityTransactionTest.java b/hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/JtaReusingEntityTransactionTest.java index 5a88ee5827..a46e9e305d 100644 --- a/hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/JtaReusingEntityTransactionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/jpa/test/transaction/JtaReusingEntityTransactionTest.java @@ -17,6 +17,7 @@ import javax.persistence.Id; import org.hibernate.cfg.AvailableSettings; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; +import org.hibernate.testing.jta.TestingJtaBootstrap; import org.junit.Test; import static org.hamcrest.core.Is.is; @@ -35,6 +36,7 @@ public class JtaReusingEntityTransactionTest extends BaseEntityManagerFunctional @Override protected void addConfigOptions(Map options) { super.addConfigOptions( options ); + TestingJtaBootstrap.prepare( options ); options.put( AvailableSettings.JPA_TRANSACTION_TYPE, "JTA" ); }