Skip to content

Add ParameterResolver support for QuarkusTest #42319

Open

Description

Description

Hello,

I am trying to use the JUnit ParameterResolver to deduplicate code in our unit tests. We have common code, that requires to create some entities before a test class and delete the entities after the tests are finished.

Sadly I have stumbled over the fact, that quarkus does not seem to provide support towards the ParamterResolver.

I have created a sample project on GitHub, including a ReadMe File to explain the issues I discovered.

https://github.com/pfaul/quarkus-test-extension

EDIT: I have added a branch (cdi_bean) to the project, where I attempt to use an application scoped bean to store the value. Sadly this attempt also does not work. The error states Unable to locate CDIProvider during the resolveParameter exection.

I really appreciate any help towards solving this setup. Maybe I am just missing some feature, that is already available.

Thanks in advance!

Implementation ideas

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions