Bladeren bron

Added tearDown method which resets the Context to null

Luke Taylor 20 jaren geleden
bovenliggende
commit
8592e3bcbf
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  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);
     }