use of com.redhat.service.smartevents.infra.validations.ValidationResult in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class WebhookActionValidatorTest method isInvalid.
@ParameterizedTest
@MethodSource("invalidParams")
void isInvalid(Map<String, String> params, String expectedErrorMessage) {
ValidationResult validationResult = validator.isValid(actionWith(params));
assertThat(validationResult.isValid()).isFalse();
assertThat(validationResult.getMessage()).startsWith(expectedErrorMessage);
}
use of com.redhat.service.smartevents.infra.validations.ValidationResult in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class AwsSqsSourceValidatorTest method isInvalid.
@ParameterizedTest
@MethodSource("invalidParams")
void isInvalid(Map<String, String> params, String expectedErrorMessage) {
ValidationResult validationResult = validator.isValid(sourceWith(params));
assertThat(validationResult.isValid()).isFalse();
assertThat(validationResult.getMessage()).isEqualTo(expectedErrorMessage);
}
Aggregations