You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2021/06/11 07:54:55 UTC

[tomee] branch master updated: See, if this will fix ReloadableEntityManagerFactoryTest related to TOMEE-3753 and OPENJPA-2844

This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new 236ca89  See, if this will fix ReloadableEntityManagerFactoryTest related to TOMEE-3753 and OPENJPA-2844
236ca89 is described below

commit 236ca896aec57c7156ed72e44d1bf932f7ff1f45
Author: Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Fri Jun 11 09:54:39 2021 +0200

    See, if this will fix ReloadableEntityManagerFactoryTest related to TOMEE-3753 and OPENJPA-2844
---
 .../openejb/persistence/ReloadableEntityManagerFactoryTest.java   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/container/openejb-core/src/test/java/org/apache/openejb/persistence/ReloadableEntityManagerFactoryTest.java b/container/openejb-core/src/test/java/org/apache/openejb/persistence/ReloadableEntityManagerFactoryTest.java
index c274f11..6b36e62 100644
--- a/container/openejb-core/src/test/java/org/apache/openejb/persistence/ReloadableEntityManagerFactoryTest.java
+++ b/container/openejb-core/src/test/java/org/apache/openejb/persistence/ReloadableEntityManagerFactoryTest.java
@@ -67,6 +67,14 @@ public class ReloadableEntityManagerFactoryTest {
     public void reload() {
         final ReloadableEntityManagerFactory remft = (ReloadableEntityManagerFactory) emf;
         final EntityManagerFactory originalEmf = remft.getDelegate();
+
+        /*
+         * XXX Remove / update this call if OPENJPA-2844 is resolved
+         * Workaround: Initialize the underlying Broker by calling createEntityManager() first
+         * before calling getProperties()
+         */
+        remft.createEntityManager();
+
         assertEquals("false", emf.getProperties().get("openjpa.DataCache"));
         select();