Browse Source

Ad mock method implementation now we're using HttpSession.removeAttribute().

Ben Alex 21 năm trước cách đây
mục cha
commit
fde59c2f29
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/src/test/java/org/acegisecurity/MockHttpSession.java

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

@@ -99,7 +99,7 @@ public class MockHttpSession implements HttpSession {
     }
 
     public void removeAttribute(String arg0) {
-        throw new UnsupportedOperationException("mock method not implemented");
+        map.remove(arg0);
     }
 
     public void removeValue(String arg0) {