浏览代码

Added tearDown method which resets the Context to null

Luke Taylor 20 年之前
父节点
当前提交
8592e3bcbf
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/src/test/java/org/acegisecurity/context/ContextHolderTests.java

+ 4 - 0
core/src/test/java/org/acegisecurity/context/ContextHolderTests.java

@@ -41,6 +41,10 @@ public class ContextHolderTests extends TestCase {
         super.setUp();
     }
 
+    public void tearDown() {
+        ContextHolder.setContext(null);
+    }
+    
     public static void main(String[] args) {
         junit.textui.TestRunner.run(ContextHolderTests.class);
     }