From 4c495a3bf598e89212f015cdbeaa5018c9699404 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 24 Apr 2014 13:44:16 +0100 Subject: [PATCH] Update tests to be compatible with Spring Web Services 2.2 Spring Web Services 2.2 added a new method, afterCompletion, to ClientInterceptor. To allow Spring Integration's tests to be run successfully against Spring Web Services 2.2, this commit adds empty implementations of this method to two test implementations of the interface. --- .../integration/ws/config/StubClientInterceptor.java | 4 ++++ .../integration/ws/config/UriVariableTests.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/StubClientInterceptor.java b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/StubClientInterceptor.java index a7cee6f230..c66973d2cc 100644 --- a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/StubClientInterceptor.java +++ b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/StubClientInterceptor.java @@ -37,4 +37,8 @@ public class StubClientInterceptor implements ClientInterceptor { return false; } + public void afterCompletion(MessageContext messageContext, Exception ex) throws WebServiceClientException { + + } + } diff --git a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/UriVariableTests.java b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/UriVariableTests.java index 24d3a57e7d..75ddb6b1b2 100644 --- a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/UriVariableTests.java +++ b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/UriVariableTests.java @@ -259,6 +259,10 @@ public class UriVariableTests { public boolean handleFault(MessageContext messageContext) throws WebServiceClientException { return false; } + + public void afterCompletion(MessageContext messageContext, Exception ex) throws WebServiceClientException { + + } } private static class Int2720EmailTestClientInterceptor extends TestClientInterceptor {