Skip to content

Commit

Permalink
fix: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mamartinezmejia committed Aug 13, 2024
1 parent 058800e commit 2ab150d
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void shouldSupportAllValidationSources(ValidationSourceEnum source, boolean supp
void shouldValidate(
String businessName,
String businessType,
String clientType,
String expectedMessage
) {

Expand All @@ -40,7 +41,7 @@ void shouldValidate(
StringUtils.EMPTY,
businessName,
businessType,
StringUtils.EMPTY,
clientType,
StringUtils.EMPTY,
StringUtils.EMPTY,
null,
Expand Down Expand Up @@ -75,12 +76,12 @@ void shouldValidate(
private static Stream<Arguments> validation() {
return
Stream.of(
Arguments.of(StringUtils.EMPTY, StringUtils.EMPTY, "You must enter a business name."),
Arguments.of(StringUtils.EMPTY, "R", "You must select your B.C. registered business name from the list."),
Arguments.of("Mainé", StringUtils.EMPTY, "Mainé has an invalid character."),
Arguments.of("Corporation".repeat(6), StringUtils.EMPTY, "This field has a 60 character limit."),
Arguments.of("Corporation", "U", "Business name must be composed of first and last name"),
Arguments.of("Corporation", "R", StringUtils.EMPTY)
Arguments.of(StringUtils.EMPTY, StringUtils.EMPTY, StringUtils.EMPTY, "You must enter a business name."),
Arguments.of(StringUtils.EMPTY, "R", StringUtils.EMPTY, "You must select your B.C. registered business name from the list."),
Arguments.of("Mainé", StringUtils.EMPTY, StringUtils.EMPTY, "Mainé has an invalid character."),
Arguments.of("Corporation".repeat(6), StringUtils.EMPTY, StringUtils.EMPTY, "This field has a 60 character limit."),
Arguments.of("Corporation", StringUtils.EMPTY, "USP", "Business name must be composed of first and last name"),
Arguments.of("Corporation", "R", StringUtils.EMPTY, StringUtils.EMPTY)
);
}

Expand Down

0 comments on commit 2ab150d

Please sign in to comment.