From 29993fbae37ccb1c519f3a9f7dfbdfb20c4a6394 Mon Sep 17 00:00:00 2001 From: Sebb Date: Fri, 20 Dec 2024 12:30:58 +0000 Subject: [PATCH] Test the original IBAN examples --- .../commons/validator/routines/IBANValidatorTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java index 4f0bcbbbd..a8fd59ff6 100644 --- a/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java +++ b/src/test/java/org/apache/commons/validator/routines/IBANValidatorTest.java @@ -375,6 +375,12 @@ public void testInValid(final String invalidIban) { assertFalse(VALIDATOR.isValid(invalidIban), invalidIban); } + @ParameterizedTest + @FieldSource("VALID_IBAN_FIXTURES") + public void testMoreValid(final String invalidIban) { + assertTrue(VALIDATOR.isValid(invalidIban), invalidIban); + } + @Test public void testNull() { assertFalse(VALIDATOR.isValid(null), "isValid(null)");