Skip to content

Commit

Permalink
add missing ee.jakarta.tck.persistence.core.criteriaapi.parameter.Cli…
Browse files Browse the repository at this point in the history
…ent2.setupEmployee + ee.jakarta.tck.persistence.core.entityManager.Client2.cleanupData

Signed-off-by: Scott Marlow <[email protected]>
  • Loading branch information
scottmarlow committed Sep 30, 2024
1 parent 1a1beef commit 8519294
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@



import java.util.Properties;

import ee.jakarta.tck.persistence.common.PMClientBase;

public abstract class Client extends PMClientBase {
Expand Down Expand Up @@ -78,6 +80,18 @@ protected void createTestData() {
}
}

public void setupEmployee(String[] args, Properties p) throws Exception {
logTrace("setupEmployee");
try {
super.setup(args, p);
removeTestData();
createTestData();
} catch (Exception e) {
logErr("Exception: ", e);
throw new Exception("setupEmployee failed:", e);
}
}

protected void removeTestData() {
logTrace( "removeTestData");
if (getEntityTransaction().isActive()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ public void cleanup() throws Exception {
}
}

public void cleanupData() throws Exception {
logTrace("Cleanup data");
removeTestData();
cleanup();
}


public List<List> getResultSetsFromStoredProcedure(StoredProcedureQuery spq) {
logTrace( "in getResultSetsFromStoredProcedure");
boolean results = true;
Expand Down

0 comments on commit 8519294

Please sign in to comment.