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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5213512c Use Java 5's String#contains()
5213512c is described below

commit 5213512c6d6cc38df8c35091f5e23e396cc611fe
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Mar 22 09:26:00 2024 -0400

    Use Java 5's String#contains()
---
 src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java 
b/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java
index eff75a0a..19bca27e 100644
--- a/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java
@@ -2462,8 +2462,7 @@ public class PropertyUtilsTestCase extends TestCase {
             // ok, getting an exception was expected. As it is of a generic
             // type, let's check the message string to make sure it really
             // was caused by the issue we expected.
-            final int index = ex.getMessage().indexOf("Indexed or mapped 
properties are not supported");
-            assertTrue("Unexpected exception message", index >= 0);
+            assertTrue("Unexpected exception message", 
ex.getMessage().contains("Indexed or mapped properties are not supported"));
         }
 
         try {

Reply via email to