Aspect actually applies in PersistenceExceptionTranslationPostProcessorTests

Issue: SPR-14457
(cherry picked from commit 04e9c2b)
This commit is contained in:
Juergen Hoeller 2016-07-13 22:31:41 +02:00
parent f0a826ec0c
commit 52f46c7fea
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2016 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Before;
import org.junit.Test; import org.junit.Test;
import org.springframework.aop.Advisor; import org.springframework.aop.Advisor;
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator; import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
import org.springframework.aop.framework.Advised; import org.springframework.aop.framework.Advised;
@ -138,7 +139,7 @@ public class PersistenceExceptionTranslationPostProcessorTests {
@Aspect @Aspect
public static class LogAllAspect { public static class LogAllAspect {
@Before("execution(void *.additionalMethod())") @Before("execution(void *.additionalMethod(*))")
public void log(JoinPoint jp) { public void log(JoinPoint jp) {
System.out.println("Before " + jp.getSignature().getName()); System.out.println("Before " + jp.getSignature().getName());
} }