Merge branch '4.0.x'
Closes gh-1498
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user