2
0
Эх сурвалжийг харах

Added tearDown method which resets the Context to null

Luke Taylor 20 жил өмнө
parent
commit
8592e3bcbf

+ 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);
     }