From 0614de94da052bf192f420640e0e3cccb5def461 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 4 Nov 2010 12:48:10 +0000 Subject: [PATCH] javadoc --- .../ws/test/client/MockWebServiceServer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/src/main/java/org/springframework/ws/test/client/MockWebServiceServer.java b/test/src/main/java/org/springframework/ws/test/client/MockWebServiceServer.java index 0b238b4a..12ff1257 100644 --- a/test/src/main/java/org/springframework/ws/test/client/MockWebServiceServer.java +++ b/test/src/main/java/org/springframework/ws/test/client/MockWebServiceServer.java @@ -16,7 +16,6 @@ package org.springframework.ws.test.client; -import org.springframework.beans.factory.BeanInitializationException; import org.springframework.context.ApplicationContext; import org.springframework.util.Assert; import org.springframework.ws.client.core.WebServiceTemplate; @@ -135,8 +134,8 @@ public class MockWebServiceServer { * * @param applicationContext the application context to base the client on * @return the created server - * @throws BeanInitializationException if the given application context contains neither a {@link - * WebServiceTemplate} nor a {@link WebServiceGatewaySupport}. + * @throws IllegalArgumentException if the given application context contains neither a {@link WebServiceTemplate} + * nor a {@link WebServiceGatewaySupport}. */ public static MockWebServiceServer createServer(ApplicationContext applicationContext) { MockStrategiesHelper strategiesHelper = new MockStrategiesHelper(applicationContext); @@ -148,7 +147,7 @@ public class MockWebServiceServer { if (gatewaySupport != null) { return createServer(gatewaySupport); } - throw new BeanInitializationException( + throw new IllegalArgumentException( "Could not find either WebServiceTemplate or WebServiceGatewaySupport in application context"); }