Merge branch '4.0.x'

Closes gh-1498
This commit is contained in:
Stéphane Nicoll
2025-03-11 14:34:27 +01:00
10 changed files with 26 additions and 47 deletions

View File

@@ -40,8 +40,7 @@ public class SourcePayloadMethodProcessorTest extends AbstractPayloadMethodProce
@Override
protected MethodParameter[] createSupportedParameters() throws NoSuchMethodException {
return new MethodParameter[] { //
new MethodParameter(getClass().getMethod("source", Source.class), 0),
return new MethodParameter[] { new MethodParameter(getClass().getMethod("source", Source.class), 0),
new MethodParameter(getClass().getMethod("dom", DOMSource.class), 0),
new MethodParameter(getClass().getMethod("sax", SAXSource.class), 0),
new MethodParameter(getClass().getMethod("stream", StreamSource.class), 0),
@@ -51,8 +50,7 @@ public class SourcePayloadMethodProcessorTest extends AbstractPayloadMethodProce
@Override
protected MethodParameter[] createSupportedReturnTypes() throws NoSuchMethodException {
return new MethodParameter[] { //
new MethodParameter(getClass().getMethod("source", Source.class), -1),
return new MethodParameter[] { new MethodParameter(getClass().getMethod("source", Source.class), -1),
new MethodParameter(getClass().getMethod("dom", DOMSource.class), -1),
new MethodParameter(getClass().getMethod("sax", SAXSource.class), -1),
new MethodParameter(getClass().getMethod("stream", StreamSource.class), -1),

View File

@@ -205,12 +205,9 @@ public class XPathParamMethodArgumentResolverTest {
public void unsupported(String s) {
}
public void supportedTypes( //
@XPathParam("/root/child") boolean param1, //
@XPathParam("/root/child/number") double param2, //
@XPathParam("/root/child") Node param3, //
@XPathParam("/root/*") NodeList param4, //
@XPathParam("/root/child/text") String param5) {
public void supportedTypes(@XPathParam("/root/child") boolean param1,
@XPathParam("/root/child/number") double param2, @XPathParam("/root/child") Node param3,
@XPathParam("/root/*") NodeList param4, @XPathParam("/root/child/text") String param5) {
}
public void convertedType(@XPathParam("/root/child/number") int param) {

View File

@@ -156,8 +156,7 @@ public class PayloadRootAnnotationMethodEndpointMappingTest {
logger.info("In doIt()");
}
@PayloadRoots({ //
@PayloadRoot(localPart = "Request1", namespace = "http://springframework.org/spring-ws"),
@PayloadRoots({ @PayloadRoot(localPart = "Request1", namespace = "http://springframework.org/spring-ws"),
@PayloadRoot(localPart = "Request2", namespace = "http://springframework.org/spring-ws") })
public void doItMultiple() {
}

View File

@@ -58,9 +58,9 @@ public abstract class AbstractWsAddressingTest {
Document resultDocument = result.getSaajMessage().getSOAPPart();
XmlAssert.assertThat(resultDocument)
.and(expectedDocument) //
.ignoreWhitespace() //
.ignoreChildNodesOrder() //
.and(expectedDocument)
.ignoreWhitespace()
.ignoreChildNodesOrder()
.areSimilar();
}
@@ -69,10 +69,7 @@ public abstract class AbstractWsAddressingTest {
Document expectedDocument = expected.getSaajMessage().getSOAPPart();
Document resultDocument = result.getSaajMessage().getSOAPPart();
XmlAssert.assertThat(resultDocument)
.and(expectedDocument) //
.ignoreWhitespace() //
.areNotSimilar();
XmlAssert.assertThat(resultDocument).and(expectedDocument).ignoreWhitespace().areNotSimilar();
}
}

View File

@@ -33,9 +33,9 @@ class HttpComponents5ContentTypeIntegrationTest
return chain.proceed(request, scope);
};
HttpClient client = HttpClientBuilder.create() //
.addRequestInterceptorFirst(new HttpComponents5MessageSender.RemoveSoapHeadersInterceptor()) //
.addExecInterceptorFirst("handler with assertion", testHandler) //
HttpClient client = HttpClientBuilder.create()
.addRequestInterceptorFirst(new HttpComponents5MessageSender.RemoveSoapHeadersInterceptor())
.addExecInterceptorFirst("handler with assertion", testHandler)
.build();
return new HttpComponents5MessageSender(client);