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 f8049628 Fix test
f8049628 is described below
commit f80496286cb08ccffb6b9b5aa991d01470911fcb
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Oct 3 08:50:56 2023 -0400
Fix test
---
src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java
b/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java
index d7fb6a49..31af9fbc 100644
--- a/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils/BeanMapTestCase.java
@@ -465,7 +465,7 @@ public class BeanMapTestCase extends AbstractTestMap {
fail("Non-public bean - retrieving the cause threw " + e2);
}
assertNotNull("Non-public bean cause null", cause);
- assertEquals("Non-public bean cause",
IllegalAccessException.class, cause.getClass());
+ assertEquals("Non-public bean cause", NoSuchMethodException.class,
cause.getClass());
}
// Test cloning a bean that throws exception
@@ -508,7 +508,7 @@ public class BeanMapTestCase extends AbstractTestMap {
fail("Retrieving the cause threw " + e2);
}
assertNotNull("Cause null", cause);
- assertEquals("Cause", IllegalAccessException.class,
cause.getClass());
+ assertEquals("Cause", NoSuchMethodException.class,
cause.getClass());
}
}