[openjpa] branch master updated: OPENJPA-2753 fix schema creation with PostgreSQL

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[openjpa] branch master updated: OPENJPA-2753 fix schema creation with PostgreSQL

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 7bc0929  OPENJPA-2753 fix schema creation with PostgreSQL
7bc0929 is described below

commit 7bc09297f88bee8e07851a09a9181b13503b97f4
Author: Mark Struberg <[hidden email]>
AuthorDate: Sat Nov 10 10:38:25 2018 +0100

    OPENJPA-2753 fix schema creation with PostgreSQL
    the test methods run random.
    It doesn't make sense to create the other schemas only for a single of those tests.
    Possibly the order was deterministic in junit3 which is a long time gone now.
 .../persistence/generationtype/TestMultipleSchemaNames.java        | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java
index 97c363d..2060586 100644
--- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java
+++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestMultipleSchemaNames.java
@@ -19,6 +19,7 @@
 package org.apache.openjpa.persistence.generationtype;
 import java.util.List;
+import java.util.concurrent.atomic.AtomicBoolean;
 import javax.persistence.EntityManager;
 import javax.persistence.PersistenceException;
@@ -58,11 +59,7 @@ public class TestMultipleSchemaNames extends SingleEMFTestCase {
-        // Create schemas when database requires this and we are about
-        // to execute the first test.
-        if ("testGeneratedAUTO".equals(getName())) {
-            createSchemas();
-        }
+        createSchemas();
         setUp(Dog1.class, Dog2.class, Dog3.class, Dog4.class,
             DogTable.class, DogTable2.class, DogTable3.class, DogTable4.class);