-
Notifications
You must be signed in to change notification settings - Fork 10
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
Junit test templating fails if another TestTemplateInvocationContextProvider used #248
Labels
bug
Something isn't working
Comments
k-wall
changed the title
Extension test templating fails if another TestTemplateInvocationContextProvider is provided
Junit test templating fails if another TestTemplateInvocationContextProvider used
Dec 6, 2023
k-wall
added a commit
to k-wall/kroxylicious-junit5-extension
that referenced
this issue
Dec 6, 2023
…hen using KafkaClusterExtension
k-wall
added a commit
to k-wall/kroxylicious-junit5-extension
that referenced
this issue
Dec 6, 2023
…hen using KafkaClusterExtension
5 tasks
5 tasks
k-wall
added a commit
to k-wall/kroxylicious-junit5-extension
that referenced
this issue
Dec 6, 2023
…hen using KafkaClusterExtension
k-wall
added a commit
to k-wall/kroxylicious-junit5-extension
that referenced
this issue
Dec 6, 2023
…hen using KafkaClusterExtension Signed-off-by: kwall <kwall@apache.org>
k-wall
added a commit
to k-wall/kroxylicious-junit5-extension
that referenced
this issue
Dec 6, 2023
…hen using KafkaClusterExtension Signed-off-by: kwall <kwall@apache.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm trying to use test templating with a test class that also takes advantage of
KafkaClusterExtension
.It fails in the following way:
The issue is that there is no parameter resolve for the KafkaCluster type parameter. The reason for this is that:
io.kroxylicious.testing.kafka.junit5ext.KafkaClusterExtension#supportsParameter(org.junit.jupiter.api.extension.ParameterContext, org.junit.jupiter.api.extension.ExtensionContext)
says no because of theTestTemplate
annotation.io.kroxylicious.testing.kafka.junit5ext.KafkaClusterExtension#provideTestTemplateInvocationContexts
fails to add parameter resolvers because it is not annotated with one of the special types -Dimension
orConstraintMethodSource
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Logs
Attach or copy and paste relevant logs.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: