Skip to content

Commit

Permalink
fix(impl): [#199] remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Apr 8, 2024
1 parent 68fe1a6 commit d7e0a33
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ void withValidListOfStrings() {
void withListContainingInvalidBPN() {
List<String> invalidList = Arrays.asList(VALID_BPN_1, "INVALID_BPN", VALID_BPN_2);
assertThat(validator.isValid(invalidList, contextMock)).isFalse();
// verify(contextMock).buildConstraintViolationWithTemplate(
//// startsWith("Element at index 1 does not match the pattern"));
verify(contextMock).buildConstraintViolationWithTemplate(messageCaptor.capture());
assertThat(messageCaptor.getValue()).contains("BPN").contains(" index 1 ").contains("invalid");
}
Expand Down

0 comments on commit d7e0a33

Please sign in to comment.