diff --git a/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/Demo1.java b/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/Demo1.java index 7931dd2a..b6eee925 100644 --- a/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/Demo1.java +++ b/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/Demo1.java @@ -55,7 +55,6 @@ public class Demo1 extends Workflow { @BeforeClass public static void beforeAllThisClass() { - Persistence.beginTransaction(); // Used to initialize the database, e.g. to set the ASM state to the DOS_INITIAL_STATE // and to insert counties and administrator test logins. runSQLSetupScript("SQL/co-counties.sql"); diff --git a/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/EstimateSampleSizesVaryingManifests.java b/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/EstimateSampleSizesVaryingManifests.java index e168c28f..8f4adba7 100644 --- a/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/EstimateSampleSizesVaryingManifests.java +++ b/server/eclipse-project/src/test/java/au/org/democracydevelopers/corla/workflows/EstimateSampleSizesVaryingManifests.java @@ -77,16 +77,11 @@ public class EstimateSampleSizesVaryingManifests extends Workflow { * Database init. */ @BeforeClass - public static void beforeAll() { - - final var containerDelegate = setupContainerStartPostgres(postgres); - - var s = Persistence.openSession(); - s.beginTransaction(); + public static void beforeAllThisClass() { // Used to initialize the database, e.g. to set the ASM state to the DOS_INITIAL_STATE // and to insert counties and administrator test logins. - ScriptUtils.runInitScript(containerDelegate, "SQL/co-counties.sql"); + runSQLSetupScript("SQL/co-counties.sql"); runMain("EstimateSampleSizesVaryingManifests"); }