From 28cdae2e50cda536d3bd71fbae8d120578e46de4 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 6 Apr 2011 11:52:18 +0000 Subject: [PATCH] SPR-8215 Fix issue with tests compiling --- .../annotation/ServletInvocableHandlerMethodTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java index 65729f624d..5d73eedda5 100644 --- a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java +++ b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java @@ -28,8 +28,7 @@ import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.context.request.ServletWebRequest; import org.springframework.web.method.support.HandlerMethodReturnValueHandlerContainer; -import org.springframework.web.method.support.StubReturnValueHandler; -import org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod; +import org.springframework.web.servlet.mvc.method.annotation.support.DefaultMethodReturnValueHandler; /** * Test fixture for {@link ServletInvocableHandlerMethod} unit tests. @@ -51,7 +50,7 @@ public class ServletInvocableHandlerMethodTests { @Test public void setResponseStatus() throws Exception { HandlerMethodReturnValueHandlerContainer handlers = new HandlerMethodReturnValueHandlerContainer(); - handlers.registerReturnValueHandler(new StubReturnValueHandler(void.class, false)); + handlers.registerReturnValueHandler(new DefaultMethodReturnValueHandler(null)); Method method = Handler.class.getDeclaredMethod("responseStatus"); ServletInvocableHandlerMethod handlerMethod = new ServletInvocableHandlerMethod(new Handler(), method);