@ -246,7 +245,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
@@ -246,7 +245,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
si.afterPropertiesSet();
fail("Should have thrown IllegalArgumentException");
}catch(IllegalArgumentExceptionexpected){
assertEquals("AccessDecisionManager does not support MethodInvocation",
assertEquals("AccessDecisionManager does not support secure object class: interface org.aopalliance.intercept.MethodInvocation",
expected.getMessage());
}
}
@ -255,12 +254,16 @@ public class MethodSecurityInterceptorTests extends TestCase {
@@ -255,12 +254,16 @@ public class MethodSecurityInterceptorTests extends TestCase {
fail("Should have thrown IllegalArgumentException");
}catch(IllegalArgumentExceptionexpected){
assertTrue(expected.getMessage().startsWith("ObjectDefinitionSource does not support objects of type"));
assertEquals("ObjectDefinitionSource does not support secure object class: interface org.aopalliance.intercept.MethodInvocation",
expected.getMessage());
}
}
@ -286,7 +289,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
@@ -286,7 +289,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
si.afterPropertiesSet();
fail("Should have thrown IllegalArgumentException");
}catch(IllegalArgumentExceptionexpected){
assertEquals("RunAsManager does not support MethodInvocation",
assertEquals("RunAsManager does not support secure object class: interface org.aopalliance.intercept.MethodInvocation",
expected.getMessage());
}
}
@ -430,8 +433,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
@@ -430,8 +433,7 @@ public class MethodSecurityInterceptorTests extends TestCase {
@ -101,7 +101,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@@ -101,7 +101,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
interceptor.afterPropertiesSet();
fail("Should have thrown IllegalArgumentException");
}catch(IllegalArgumentExceptionexpected){
assertEquals("AccessDecisionManager does not support FilterInvocation",
assertEquals("AccessDecisionManager does not support secure object class: class net.sf.acegisecurity.intercept.web.FilterInvocation",
expected.getMessage());
}
}
@ -133,7 +133,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
@@ -133,7 +133,7 @@ public class FilterSecurityInterceptorTests extends TestCase {
interceptor.afterPropertiesSet();
fail("Should have thrown IllegalArgumentException");
}catch(IllegalArgumentExceptionexpected){
assertEquals("RunAsManager does not support FilterInvocation",
assertEquals("RunAsManager does not support secure object class: class net.sf.acegisecurity.intercept.web.FilterInvocation",