By using JUnitParameter for testing a methode I have an exception. My code is similar to lot of example on JUnitParameter:
private Object parametersForTe
I stumbled across this article while looking for an issue to a similar problem. I was getting an exception like this:
java.lang.Exception: Method x should have no parameters
It turns out I was using the wrong import for the @Test annotation.
I originally used import org.junit.Test;
but what I needed to use was import org.junit.jupiter.api.Test;
Long story short, make sure you are checking your imports, sometimes the auto-generated ones aren't really what you want.