assertThat( parameterNames ).containsExactly( "arg0", "arg1" );
}
@Test
public void shouldUseParanamerProviderDuringValidation() throws Exception {
ExecutableValidator executableValidator = getConfiguration()
.parameterNameProvider( new ParanamerParameterNameProvider( new CustomAnnotationParanamer() ) )
.buildValidatorFactory()
.getValidator()
.forExecutables();
Object object = new ComputerGame( "Giovanni Brothers" );
Method method = ComputerGame.class.getMethod( "pauseGame", int.class );
Object[] parameterValues = new Object[] { -2 };
Set<ConstraintViolation<Object>> violations = executableValidator.validateParameters(
object,
method,
parameterValues
);