You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2018/10/08 01:26:50 UTC

[cxf] 03/04: [CXF-7827]also update the test

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

ffang pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 6b76ed744661f2cb94b52e943fc42b668a341b40
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Mon Aug 27 17:29:58 2018 +0800

    [CXF-7827]also update the test
    
    (cherry picked from commit 25f2ad8d62ead6f4ec0589a3d029252319d918db)
---
 .../test/java/org/apache/cxf/common/logging/RegexLoggingFilterTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/test/java/org/apache/cxf/common/logging/RegexLoggingFilterTest.java b/core/src/test/java/org/apache/cxf/common/logging/RegexLoggingFilterTest.java
index f153d72..7b77941 100644
--- a/core/src/test/java/org/apache/cxf/common/logging/RegexLoggingFilterTest.java
+++ b/core/src/test/java/org/apache/cxf/common/logging/RegexLoggingFilterTest.java
@@ -29,7 +29,7 @@ public class RegexLoggingFilterTest extends Assert {
         RegexLoggingFilter filter = new RegexLoggingFilter();
         filter.setPattern("jms(.*?)password=+([^ ]+)[.]");
         filter.setGroup(2);
-        wantFilter = (String)filter.filter(wantFilter);
+        wantFilter = filter.filter(wantFilter).toString();
         assertEquals(wantFilter, "jms:queue:soapRequestQueue?username=admin&password=*****.");
     }