Skip to content

[OPENJPA-2996] Exercise the lazy not-loaded path in load state tests - #183

Merged
cristof merged 1 commit into
masterfrom
OPENJPA-2996
Sep 15, 2026
Merged

cristof merged 1 commit into
masterfrom
OPENJPA-2996

Conversation

@rzo1

@rzo1 rzo1 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

testNotLoadedLazy in TestPersistenceUnitUtil, TestPersistenceUtil and TestProviderUtil repeated the eager check, so it now checks the lazy not-loaded state instead. createLazyEntity now actually attaches and saves its RelEntity, so testLoadingLazyAttributeByName checks a relation that isn't empty.

testNotLoadedLazy duplicated testNotLoadedEager in TestPersistenceUnitUtil,
TestPersistenceUtil and TestProviderUtil. Also attach and persist the
RelEntity built by createLazyEntity so testLoadingLazyAttributeByName
really loads a non-empty relation.
@rzo1 rzo1 self-assigned this Sep 14, 2026
@rzo1
rzo1 requested review from cristof and solomax September 14, 2026 18:04
@cristof
cristof merged commit 9659240 into master Sep 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants