Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: Reenables failing JPA test #9037

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

ljnelson
Copy link
Member

@ljnelson ljnelson commented Jul 24, 2024

Re-enables the TestAnnotationRewriting#testNonTransactionalEntityManager() test. Closes #8122.

This PR ensures that this test suite is set up to properly test the old JPA integration classes (primarily JpaExtension), which coexist, normally dormantly, with the new-and-supported JPA integration classes (primarily PersistenceExtension). It does so by ensuring that the deliberately undocumented system properties controlling enablement and disablement are set appropriately for this test suite. They had not been so set in the past, and that's one of the reasons the test was failing.

Given that there have not been any complaints for a couple of releases now about the new overhauled JPA stuff, it means it has proven itself in the wild to be backwards compatible. Consequently, I will open a subsequent issue to remove this coexistence/old stuff and the JpaExtension class, and any test suites that exercise it.

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson added MP P2 cdi CDI jpa/jta testing java Pull requests that update Java code 4.x Version 4.x labels Jul 24, 2024
@ljnelson ljnelson added this to the 4.1.0 milestone Jul 24, 2024
@ljnelson ljnelson requested review from barchetta and tjquinno July 24, 2024 19:47
@ljnelson ljnelson self-assigned this Jul 24, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 24, 2024
tjquinno
tjquinno previously approved these changes Jul 24, 2024
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson merged commit 1e4a511 into helidon-io:main Jul 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x cdi CDI java Pull requests that update Java code jpa/jta MP OCA Verified All contributors have signed the Oracle Contributor Agreement. P2 testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4.x: integrations.cdi.jpa.TestAnnotationRewriting test failure
2 participants