I'm trying to use JUnit Pioneer `@CartesianTest.Va...
# getting-started
l
I'm trying to use JUnit Pioneer
@CartesianTest.Values
annotation with an array literal, but I get an error (Kotlin 1.8.10):
w
You should annotate the member function with
CartesianTest
, and the parameters with
CartesianTest.Values
. This error you see is because you use an annotation that is meant for parameters on a member function
l
Sorry, I cut away too much while making the screenshot. I have the
@CartesianTest
annotation.
image.png
w
These are not applicable to the same target.
CartesianTest
is for functions,
CartesianTest.Values
is for parameters.
l
My bad!
I was thinking about it the same way as the Jupiter
@ValueSource
annotation.
👍 1
Thanks so much for quick help!
w
No worries, happy to help 🙂