Added tearDown method which resets the context to null to prevent occasional breaking of other test classes.
This commit is contained in:
parent
f578915728
commit
5d1cd29dfb
|
@ -42,6 +42,10 @@ public class X509ProcessingFilterTests extends TestCase {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void tearDown() {
|
||||||
|
ContextHolder.setContext(null);
|
||||||
|
}
|
||||||
|
|
||||||
public void testNormalOperation() throws Exception {
|
public void testNormalOperation() throws Exception {
|
||||||
MockHttpServletRequest request = new MockHttpServletRequest(null, new MockHttpSession());
|
MockHttpServletRequest request = new MockHttpServletRequest(null, new MockHttpSession());
|
||||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||||
|
|
Loading…
Reference in New Issue