org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter

Problem: JUnit test returns next error:

org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter

Solution number one:

Maybe you are using @Test and @ParametizedTest or @Test and @RepeatedTest or something similar in the same method. Just remove @Test to fix this bug.

Solution number two:

Include @ExtendWith({OutputCaptureExtension.class, MockitoExtension.class}) at class level if you are trying to capture logs outputs or something similar.

For more interesting tutorials & guides just check them HERE.

Leave a Reply

Your email address will not be published. Required fields are marked *