Skip to content

Conversation

@XN137
Copy link
Contributor

@XN137 XN137 commented Nov 13, 2025

this avoids a bunch of redundant manual setup.

the important parts are establishing a RealmContext by calling
QuarkusMock.installMockForType and then populating polarisContext
from the injected CallContext.

this avoids a bunch of redundant manual setup.

the important parts are establishing a `RealmContext` by calling
`QuarkusMock.installMockForType` and then populating `polarisContext`
from the injected `CallContext`.
@XN137 XN137 force-pushed the use-cdi-for-test-setups branch from fe397ec to 8fd2400 Compare November 13, 2025 11:04
@XN137 XN137 marked this pull request as ready for review November 13, 2025 11:22
Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

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

LGTM!
It's a test-only change w/o any functional changes.

I'd suggest to remove unused fields/injections like AbstractPolicyCatalogTest.adminService and their dependencies in a follow-up.

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Nov 13, 2025
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