소스 검색

Forgot to add @Before and @After annotations to junit test.

Luke Taylor 17 년 전
부모
커밋
482cb23d9c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      portlet/src/test/java/org/springframework/security/ui/portlet/PortletProcessingInterceptorTests.java

+ 4 - 0
portlet/src/test/java/org/springframework/security/ui/portlet/PortletProcessingInterceptorTests.java

@@ -24,6 +24,8 @@ import java.util.HashMap;
 import javax.portlet.PortletRequest;
 import javax.portlet.PortletSession;
 
+import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 import org.springframework.mock.web.portlet.MockActionRequest;
 import org.springframework.mock.web.portlet.MockActionResponse;
@@ -52,10 +54,12 @@ import org.springframework.security.util.AuthorityUtils;
 public class PortletProcessingInterceptorTests {
     //~ Methods ========================================================================================================
 
+    @Before
     public void setUp() throws Exception {
         SecurityContextHolder.clearContext();
     }
 
+    @After
     public void tearDown() throws Exception {
         SecurityContextHolder.clearContext();
     }