Replies: 1 comment
-
Finally figured this out. Documenting this for anyone else who needs to know. The answer is in the eclipselink.jpa.test.jse POM, in the config for maven-failsafe-plugin. You need to set your JUnit test up so it has the jakarta.persistence.jdbc.* system properties. If you're using Eclipse, you also need to set the project to activate the appropriate Maven profile for your database, which you can do by right-clicking the project, clicking Properties, clicking Maven, and typing the profile name in the Active Maven Profiles list. The valid profiles are in the root POM. For Postgres, it is "pgsql". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've discovered that EclipseLink's code for running stored procedures on Postgres is very broken. Nobody seems to have noticed, probably because the stored procedure tests (e.g. org.eclipse.persistence.jpa.test.storedproc.TestStoredProcedures) don't run on Postgres. So I'm trying to make a PR to fix this, and I want to enable some testing to prevent regressions. But I can't figure out how to configure the necessary parameters to run a single JUnit test. I've seen https://github.com/eclipse-ee4j/eclipselink/wiki/Running-EclipseLink-Tests which is not helpful at all, and also https://github.com/eclipse-ee4j/eclipselink/wiki/Building-EclipseLink but that only describes how to run entire test suites.
So how do I run just org.eclipse.persistence.jpa.test.storedproc.TestStoredProcedures?
Beta Was this translation helpful? Give feedback.
All reactions