From d9ed89fda76970a44dfca9ff44f68de34edbaf62 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 17 Oct 2011 10:35:43 +0000 Subject: [PATCH] SWS-714 - MockWebServiceClient.sendRequest swallows StackTrace of exceptions thrown during request processing --- .../ws/test/server/MockWebServiceClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/src/main/java/org/springframework/ws/test/server/MockWebServiceClient.java b/test/src/main/java/org/springframework/ws/test/server/MockWebServiceClient.java index 8359d76a..4cbb4060 100644 --- a/test/src/main/java/org/springframework/ws/test/server/MockWebServiceClient.java +++ b/test/src/main/java/org/springframework/ws/test/server/MockWebServiceClient.java @@ -1,11 +1,11 @@ /* - * Copyright 2005-2010 the original author or authors. + * Copyright 2005-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -181,6 +181,7 @@ public class MockWebServiceClient { return new MockWebServiceClientResponseActions(messageContext); } catch (Exception ex) { + logger.error("Could not send request", ex); fail(ex.getMessage()); return null; } @@ -209,6 +210,7 @@ public class MockWebServiceClient { return this; } catch (IOException ex) { + logger.error("Could not match request", ex); fail(ex.getMessage()); return null; }