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 d1e92298432ecb97171006d6b44d64bbca790d8f Author: Emmanuel Bourg <ebo...@apache.org> AuthorDate: Mon Nov 18 10:23:44 2024 +0100 Replace org.junit.Ignore with org.junit.jupiter.api.Disabled --- src/test/java/org/apache/commons/validator/EmailTest.java | 6 +++--- src/test/java/org/apache/commons/validator/ExceptionTest.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/commons/validator/EmailTest.java b/src/test/java/org/apache/commons/validator/EmailTest.java index f584f68f..b50dd57d 100644 --- a/src/test/java/org/apache/commons/validator/EmailTest.java +++ b/src/test/java/org/apache/commons/validator/EmailTest.java @@ -22,8 +22,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; -import org.junit.Ignore; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; @@ -161,7 +161,7 @@ public class EmailTest extends AbstractCommonTest { * * FIXME This test fails so disable it with a leading _ for 1.1.4 release. The real solution is to fix the email parsing. */ - @Ignore + @Disabled public void testEmailFromPerl() throws ValidatorException { final ValueBean info = new ValueBean(); for (final ResultPair element : testEmailFromPerl) { @@ -190,7 +190,7 @@ public class EmailTest extends AbstractCommonTest { * * @throws ValidatorException */ - @Ignore + @Disabled public void testEmailUserName() throws ValidatorException { final ValueBean info = new ValueBean(); info.setValue("joe1b...@apache.org"); diff --git a/src/test/java/org/apache/commons/validator/ExceptionTest.java b/src/test/java/org/apache/commons/validator/ExceptionTest.java index 9dccdb3b..a7e8af04 100644 --- a/src/test/java/org/apache/commons/validator/ExceptionTest.java +++ b/src/test/java/org/apache/commons/validator/ExceptionTest.java @@ -21,8 +21,8 @@ import static org.junit.jupiter.api.Assertions.fail; import java.io.IOException; -import org.junit.Ignore; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; @@ -55,7 +55,7 @@ public class ExceptionTest extends AbstractCommonTest { * N.B. This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be * reconsidered then. */ - @Ignore + @Disabled public void testCheckedException() { // Create bean to run test on. final ValueBean info = new ValueBean(); @@ -94,7 +94,7 @@ public class ExceptionTest extends AbstractCommonTest { * N.B. This test has been removed (renamed) as it currently serves no purpose. If/When exception handling is changed in Validator 2.0 it can be * reconsidered then. */ - @Ignore + @Disabled public void testRuntimeException() throws ValidatorException { // Create bean to run test on. final ValueBean info = new ValueBean();