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 528a9e2ebba5653787cc2bac5c4b6a7da4516c4f
Author: Emmanuel Bourg <ebo...@apache.org>
AuthorDate: Mon Nov 18 10:24:24 2024 +0100

    Replace org.junit.Before with org.junit.jupiter.api.BeforeEach
---
 .../java/org/apache/commons/validator/routines/UrlValidatorTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java 
b/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
index 3fb605ae..2d8825c7 100644
--- a/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
@@ -28,7 +28,7 @@ import java.util.List;
 
 import org.apache.commons.lang3.SystemProperties;
 import org.apache.commons.validator.ResultPair;
-import org.junit.Before;
+import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 
 /**
@@ -143,7 +143,7 @@ public class UrlValidatorTest {
             new ResultPair("g0-to+.", true), new ResultPair("not_valid", 
false), // underscore not allowed
             new ResultPair("HtTp", true), new ResultPair("telnet", false) };
 
-    @Before
+    @BeforeEach
     public void setUp() {
         for (int index = 0; index < testPartsIndex.length - 1; index++) {
             testPartsIndex[index] = 0;

Reply via email to