commit | 236ca896aec57c7156ed72e44d1bf932f7ff1f45 | [log] [tgz] |
---|---|---|
author | Richard Zowalla <13417392+rzo1@users.noreply.github.com> | Fri Jun 11 09:54:39 2021 +0200 |
committer | Richard Zowalla <13417392+rzo1@users.noreply.github.com> | Fri Jun 11 09:54:39 2021 +0200 |
tree | 900ce04f33e33864f4d245946b64fd93a610e5da | |
parent | 66de40e24e9f6ffff14c69a6b7acf91759ccccaa [diff] |
See, if this will fix ReloadableEntityManagerFactoryTest related to TOMEE-3753 and OPENJPA-2844
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 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();