1
0
mirror of synced 2026-08-04 01:07:02 +00:00

DummyRequest supports methods for MvcRequestMatcher

To support MvcRequestMatcher DummyRequest needs to support
getCharacterEncoding() and getAttribute(String)
This commit is contained in:
Rob Winch
2016-07-14 14:13:20 -05:00
parent ada146244e
commit ca170f8479
2 changed files with 15 additions and 0 deletions
@@ -167,6 +167,14 @@ class DummyRequest extends HttpServletRequestWrapper {
super(UNSUPPORTED_REQUEST);
}
public String getCharacterEncoding() {
return "UTF-8";
}
public Object getAttribute(String attributeName) {
return null;
}
public void setRequestURI(String requestURI) {
this.requestURI = requestURI;
}