mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Forgot to add @Before and @After annotations to junit test.
This commit is contained in:
parent
992b35e5d4
commit
482cb23d9c
@ -24,6 +24,8 @@ import java.util.HashMap;
|
|||||||
import javax.portlet.PortletRequest;
|
import javax.portlet.PortletRequest;
|
||||||
import javax.portlet.PortletSession;
|
import javax.portlet.PortletSession;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.mock.web.portlet.MockActionRequest;
|
import org.springframework.mock.web.portlet.MockActionRequest;
|
||||||
import org.springframework.mock.web.portlet.MockActionResponse;
|
import org.springframework.mock.web.portlet.MockActionResponse;
|
||||||
@ -52,10 +54,12 @@ import org.springframework.security.util.AuthorityUtils;
|
|||||||
public class PortletProcessingInterceptorTests {
|
public class PortletProcessingInterceptorTests {
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
SecurityContextHolder.clearContext();
|
SecurityContextHolder.clearContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
SecurityContextHolder.clearContext();
|
SecurityContextHolder.clearContext();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user