use of org.junit.jupiter.params.provider.NullSource in project Gaffer by gchq.
the class AlwaysValidTrue method shouldReturnValidationResultForNullAndString.
@ParameterizedTest
@NullSource
@ValueSource(strings = { "test" })
public void shouldReturnValidationResultForNullAndString(String input) {
final AlwaysValid<String> validator = new AlwaysValid<>();
final ValidationResult result = validator.validateWithValidationResult(input);
assertTrue(result.isValid());
}
Aggregations