SEC-496: <annotation-driven> element.
This commit is contained in:
@@ -72,7 +72,7 @@ public class MethodDefinitionSourceAdvisorTests extends TestCase {
|
||||
Method method = clazz.getMethod("makeLowerCase", new Class[] {String.class});
|
||||
|
||||
MethodDefinitionSourceAdvisor advisor = new MethodDefinitionSourceAdvisor(getInterceptor());
|
||||
assertFalse(advisor.matches(method, clazz));
|
||||
assertFalse(advisor.getPointcut().getMethodMatcher().matches(method, clazz));
|
||||
}
|
||||
|
||||
public void testAdvisorReturnsTrueWhenMethodInvocationIsDefined()
|
||||
@@ -81,7 +81,7 @@ public class MethodDefinitionSourceAdvisorTests extends TestCase {
|
||||
Method method = clazz.getMethod("countLength", new Class[] {String.class});
|
||||
|
||||
MethodDefinitionSourceAdvisor advisor = new MethodDefinitionSourceAdvisor(getInterceptor());
|
||||
assertTrue(advisor.matches(method, clazz));
|
||||
assertTrue(advisor.getPointcut().getMethodMatcher().matches(method, clazz));
|
||||
}
|
||||
|
||||
public void testDetectsImproperlyConfiguredAdvice() {
|
||||
|
||||
Reference in New Issue
Block a user