瀏覽代碼

Extra mock functionality for new unit tests.

Ben Alex 21 年之前
父節點
當前提交
369ea24215
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/src/test/java/org/acegisecurity/MockHttpServletRequest.java

+ 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() {