Skip to content

fix descriptions of targetOwner and originOwner predicates in JavaAccess#1603

Merged
StefanGraeber merged 1 commit into
TNG:mainfrom
StefanGraeber:fix-access-owner-predicate-descriptions
May 18, 2026
Merged

fix descriptions of targetOwner and originOwner predicates in JavaAccess#1603
StefanGraeber merged 1 commit into
TNG:mainfrom
StefanGraeber:fix-access-owner-predicate-descriptions

Conversation

@StefanGraeber
Copy link
Copy Markdown
Contributor

@StefanGraeber StefanGraeber commented Apr 10, 2026

targetOwner and originOwner() were producing the same message as target() and origin() e.g. "access target where target is annotated with..." instead of "access target where target owner is annotated with..." The existing test is also updated to assert that the correct element is passed to the given predicate, for which new testUtils are introduced.

replacement for #1579

@StefanGraeber StefanGraeber force-pushed the fix-access-owner-predicate-descriptions branch 3 times, most recently from 960e3d6 to ffe067a Compare April 13, 2026 07:09
@StefanGraeber StefanGraeber force-pushed the fix-access-owner-predicate-descriptions branch from ffe067a to 759c85a Compare April 24, 2026 12:39
@StefanGraeber StefanGraeber requested a review from hankem May 6, 2026 15:35
Copy link
Copy Markdown
Member

@hankem hankem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Comment thread archunit/src/test/java/com/tngtech/archunit/core/domain/TestUtils.java Outdated
targetOwner and originOwner() were producing the same message as target() and origin()
e.g. "access target where target is annotated with..." instead of "access target where target owner is annotated with..."
The existing test is also updated to assert that the correct element is passed to the given predicate, for which new testUtils are introduced.

Signed-off-by: Stefan Gräber <stefan.graeber@tngtech.com>
@StefanGraeber StefanGraeber force-pushed the fix-access-owner-predicate-descriptions branch from 759c85a to 52d6874 Compare May 18, 2026 07:13
@StefanGraeber StefanGraeber merged commit 1b735b8 into TNG:main May 18, 2026
62 of 63 checks passed
@StefanGraeber
Copy link
Copy Markdown
Contributor Author

@wakingrufus this PR is merged now. thanks again for your original PR #1579 finding the issue 🙂

@StefanGraeber StefanGraeber deleted the fix-access-owner-predicate-descriptions branch May 18, 2026 07:33
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.

2 participants