diff --git a/core/pom.xml b/core/pom.xml
index d601dce7de..d51bf65302 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -55,7 +55,6 @@
org.aspectj
aspectjweaver
- 1.5.4
test
true
@@ -64,6 +63,12 @@
spring-ldap
true
+
+ cglib
+ cglib-nodep
+ test
+ true
+
net.sf.ehcache
ehcache
diff --git a/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodSecurityInterceptorWithAopConfigTests.java b/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodSecurityInterceptorWithAopConfigTests.java
index 337cd9b5d7..2e1ec4add1 100644
--- a/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodSecurityInterceptorWithAopConfigTests.java
+++ b/core/src/test/java/org/springframework/security/intercept/method/aopalliance/MethodSecurityInterceptorWithAopConfigTests.java
@@ -13,6 +13,7 @@ import org.springframework.security.util.InMemoryXmlApplicationContext;
* Tests for SEC-428.
*
* @author Luke Taylor
+ * @author Ben Alex
*/
public class MethodSecurityInterceptorWithAopConfigTests {
static final String AUTH_PROVIDER_XML =
@@ -39,7 +40,8 @@ public class MethodSecurityInterceptorWithAopConfigTests {
@After
public void closeAppContext() {
- if (appContext != null) {
+ SecurityContextHolder.clearContext();
+ if (appContext != null) {
appContext.close();
appContext = null;
}
@@ -48,7 +50,7 @@ public class MethodSecurityInterceptorWithAopConfigTests {
@Test(expected=AuthenticationCredentialsNotFoundException.class)
public void securityInterceptorIsAppliedWhenUsedWithAopConfig() {
setContext(
- "" +
+ "" +
" " +
" " +
"" +
@@ -56,9 +58,9 @@ public class MethodSecurityInterceptorWithAopConfigTests {
"" +
" " +
" " +
- "org.springframework.security.ITargetObject.makeLower*=ROLE_A\n" +
- "org.springframework.security.ITargetObject.makeUpper*=ROLE_A\n" +
- "org.springframework.security.ITargetObject.computeHashCode*=ROLE_B\n" +
+ "org.springframework.security.TargetObject.makeLower*=ROLE_A\n" +
+ "org.springframework.security.TargetObject.makeUpper*=ROLE_A\n" +
+ "org.springframework.security.TargetObject.computeHashCode*=ROLE_B\n" +
" " +
" " +
"" +
diff --git a/pom.xml b/pom.xml
index 3f1442b6e1..22d3b14752 100644
--- a/pom.xml
+++ b/pom.xml
@@ -659,6 +659,13 @@
spring-ldap
1.2.1
+
+ org.aspectj
+ aspectjweaver
+ test
+ true
+ 1.5.4
+
aspectj
aspectjrt
@@ -669,6 +676,13 @@
spring-webmvc
${spring.version}
+
+ cglib
+ cglib-nodep
+ test
+ true
+ 2.1_3
+
log4j
log4j