This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.6.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.6.x-fixes by this push:
new 7cdc41166c Fix PMD violations (#2516)
7cdc41166c is described below
commit 7cdc41166cb82cf799d1e6ab00ea287474544b8b
Author: Andriy Redko <[email protected]>
AuthorDate: Sat Jul 19 20:36:18 2025 -0400
Fix PMD violations (#2516)
---
.../org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git
a/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
b/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
index da12052e73..2426d51ec3 100644
---
a/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
+++
b/systests/transports/src/test/java/org/apache/cxf/systest/http/HTTPConduitIoExceptionsTest.java
@@ -79,12 +79,11 @@ public class HTTPConduitIoExceptionsTest extends
AbstractBusClientServerTestBase
@Test
public void testServiceUnavailable() throws Exception {
final Greeter greeter = getGreeter();
+ final String message = "HTTP response '503: Service Unavailable' when "
+ + "communicating with http://localhost:" + BadServer.PORT +
"/Mortimer";
exception.expect(WebServiceException.class);
exception.expectCause(new TypeSafeMatcher<Throwable>() {
- private final String message = "HTTP response '503: Service
Unavailable' when "
- + "communicating with http://localhost:" + BadServer.PORT +
"/Mortimer";
-
@Override
public void describeTo(Description description) {
description
@@ -106,11 +105,11 @@ public class HTTPConduitIoExceptionsTest extends
AbstractBusClientServerTestBase
@Test
public void testNotFound() throws Exception {
final Greeter greeter = getGreeter();
+ final String message = "HTTP response '404: Not Found' when "
+ + "communicating with http://localhost:" + BadServer.PORT +
"/Mortimer";
exception.expect(WebServiceException.class);
exception.expectCause(new TypeSafeMatcher<Throwable>() {
- private final String message = "HTTP response '404: Not Found'
when "
- + "communicating with http://localhost:" + BadServer.PORT +
"/Mortimer";
@Override
public void describeTo(Description description) {