This is an automated email from the ASF dual-hosted git repository. ebourg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-validator.git
commit 4b2e3dc040ec42e83b356e199796be52844f0b45 Author: Emmanuel Bourg <ebo...@apache.org> AuthorDate: Mon Nov 18 10:24:47 2024 +0100 Replace org.junit.Assert with org.junit.jupiter.api.Assertions --- .../commons/validator/routines/checkdigit/IBANCheckDigitTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java index 67069637..84e2984f 100644 --- a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java +++ b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java @@ -16,12 +16,14 @@ */ package org.apache.commons.validator.routines.checkdigit; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; -import org.junit.Assert; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -201,9 +203,9 @@ public class IBANCheckDigitTest extends AbstractCheckDigitTest { if (!line.startsWith("#") && !line.isEmpty()) { if (line.startsWith("-")) { line = line.substring(1); - Assert.assertFalse(line, routine.isValid(line.replace(" ", ""))); + assertFalse(routine.isValid(line.replace(" ", "")), line); } else { - Assert.assertTrue(line, routine.isValid(line.replace(" ", ""))); + assertTrue(routine.isValid(line.replace(" ", "")), line); } } }