mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 21:12:18 +00:00
Extra mock functionality for new unit tests.
This commit is contained in:
parent
3f6961d855
commit
369ea24215
@ -226,7 +226,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getRemoteAddr() {
|
public String getRemoteAddr() {
|
||||||
throw new UnsupportedOperationException("mock method not implemented");
|
return "127.0.0.1";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRemoteHost() {
|
public String getRemoteHost() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user