Browse Source

Extra mock functionality for new unit tests.

Ben Alex 21 năm trước cách đây
mục cha
commit
369ea24215

+ 1 - 1
core/src/test/java/org/acegisecurity/MockHttpServletRequest.java

@@ -226,7 +226,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
     }
 
     public String getRemoteAddr() {
-        throw new UnsupportedOperationException("mock method not implemented");
+        return "127.0.0.1";
     }
 
     public String getRemoteHost() {