SPR-8215 Fix issue with tests compiling
This commit is contained in:
@@ -28,8 +28,7 @@ import org.springframework.mock.web.MockHttpServletResponse;
|
|||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||||
import org.springframework.web.context.request.ServletWebRequest;
|
import org.springframework.web.context.request.ServletWebRequest;
|
||||||
import org.springframework.web.method.support.HandlerMethodReturnValueHandlerContainer;
|
import org.springframework.web.method.support.HandlerMethodReturnValueHandlerContainer;
|
||||||
import org.springframework.web.method.support.StubReturnValueHandler;
|
import org.springframework.web.servlet.mvc.method.annotation.support.DefaultMethodReturnValueHandler;
|
||||||
import org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test fixture for {@link ServletInvocableHandlerMethod} unit tests.
|
* Test fixture for {@link ServletInvocableHandlerMethod} unit tests.
|
||||||
@@ -51,7 +50,7 @@ public class ServletInvocableHandlerMethodTests {
|
|||||||
@Test
|
@Test
|
||||||
public void setResponseStatus() throws Exception {
|
public void setResponseStatus() throws Exception {
|
||||||
HandlerMethodReturnValueHandlerContainer handlers = new HandlerMethodReturnValueHandlerContainer();
|
HandlerMethodReturnValueHandlerContainer handlers = new HandlerMethodReturnValueHandlerContainer();
|
||||||
handlers.registerReturnValueHandler(new StubReturnValueHandler(void.class, false));
|
handlers.registerReturnValueHandler(new DefaultMethodReturnValueHandler(null));
|
||||||
|
|
||||||
Method method = Handler.class.getDeclaredMethod("responseStatus");
|
Method method = Handler.class.getDeclaredMethod("responseStatus");
|
||||||
ServletInvocableHandlerMethod handlerMethod = new ServletInvocableHandlerMethod(new Handler(), method);
|
ServletInvocableHandlerMethod handlerMethod = new ServletInvocableHandlerMethod(new Handler(), method);
|
||||||
|
|||||||
Reference in New Issue
Block a user