Преглед на файлове

Added tearDown method which resets the context to null to prevent occasional breaking of other test classes.

Luke Taylor преди 20 години
родител
ревизия
5d1cd29dfb
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java

+ 4 - 0
core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java

@@ -42,6 +42,10 @@ public class X509ProcessingFilterTests extends TestCase {
         super.setUp();
     }
 
+    public void tearDown() {
+        ContextHolder.setContext(null);
+    }
+
     public void testNormalOperation() throws Exception {
         MockHttpServletRequest request = new MockHttpServletRequest(null, new MockHttpSession());
         MockHttpServletResponse response = new MockHttpServletResponse();