This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git


The following commit(s) were added to refs/heads/1.X by this push:
     new 66a5e4d9 Port to JUnit 5
66a5e4d9 is described below

commit 66a5e4d9e5acb4544db56651dc301e4d1bbc3b6a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 29 11:14:53 2025 -0500

    Port to JUnit 5
---
 .gitignore                                             |  1 +
 .../apache/commons/beanutils/bugs/Jira422TestCase.java | 18 ++++++++----------
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index 3c22737e..4381e767 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 .project
 .settings/
 /site-content/
+/.idea/
diff --git 
a/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java 
b/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java
index 114507e0..536091d8 100644
--- a/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/bugs/Jira422TestCase.java
@@ -14,9 +14,10 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.commons.beanutils.bugs;
 
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
 import java.beans.BeanInfo;
 import java.beans.IndexedPropertyDescriptor;
@@ -26,8 +27,8 @@ import java.beans.PropertyDescriptor;
 import java.util.List;
 
 import org.apache.commons.beanutils.PropertyUtils;
-import org.junit.Assert;
-import org.junit.Assume;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Assumptions;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
 
@@ -37,8 +38,7 @@ class FirstChildBean extends RootBean {
 /**
  * getPropertyType return null on second descendant class
  * <p>
- * This test only work in Java 7 or earlier (See BEANUTILS-492) - as
- * a weaker alternative, see {@link Jira422bTestCase}.
+ * This test only work in Java 7 or earlier (See BEANUTILS-492) - as a weaker 
alternative, see {@link Jira422bTestCase}.
  *
  *
  * @see <a 
href="https://issues.apache.org/jira/browse/BEANUTILS-422";>https://issues.apache.org/jira/browse/BEANUTILS-422</a>
@@ -55,12 +55,12 @@ public class Jira422TestCase {
         final BeanInfo beanInfo = Introspector.getBeanInfo(RootBean.class);
         for (final PropertyDescriptor pd : beanInfo.getPropertyDescriptors()) {
             if (pd.getName().equals("file")) {
-                Assume.assumeTrue("BEANUTILS-492: IndexedPropertyDescriptor no 
longer supported for java.util.List",
-                        pd instanceof IndexedPropertyDescriptor);
+                Assumptions.assumeTrue(pd instanceof IndexedPropertyDescriptor,
+                        "BEANUTILS-492: IndexedPropertyDescriptor no longer 
supported for java.util.List");
                 return;
             }
         }
-        Assert.fail("Could not find PropertyDescriptor for 'file'");
+        Assertions.fail("Could not find PropertyDescriptor for 'file'");
     }
 
     @Test
@@ -76,7 +76,6 @@ public class Jira422TestCase {
         final Class<?> propertyType = PropertyUtils.getPropertyType(bean, 
"file[0]");
         assertEquals(String.class.getName(), propertyType.getName());
     }
-
 }
 
 @SuppressWarnings("rawtypes")
@@ -100,7 +99,6 @@ class RootBean {
     public void setFile(final List file) {
         this.file = file;
     }
-
 }
 
 class SecondChildBean extends RootBean {

Reply via email to