79103166

Date: 2024-10-18 17:54:32
Score: 1
Natty:
Report link

In JUnit 5, tests with parameters (e.g. via the @ParameterizedTest annotation) do not propagate to the parameters of the test class constructor. For a parameterized constructor, you need to register a special ParameterResolver that will tell the framework how to pass parameters to the constructor.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Andrey Smelik