From 482cb23d9c76e4bcb34bf5fe058c76208aec999f Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 22 Nov 2008 01:49:16 +0000 Subject: [PATCH] Forgot to add @Before and @After annotations to junit test. --- .../ui/portlet/PortletProcessingInterceptorTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portlet/src/test/java/org/springframework/security/ui/portlet/PortletProcessingInterceptorTests.java b/portlet/src/test/java/org/springframework/security/ui/portlet/PortletProcessingInterceptorTests.java index b9ef73540d..2943ce9f9f 100644 --- a/portlet/src/test/java/org/springframework/security/ui/portlet/PortletProcessingInterceptorTests.java +++ b/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(); }