Browse Source

Aspect actually applies in PersistenceExceptionTranslationPostProcessorTests

Issue: SPR-14457
pull/1070/merge
Juergen Hoeller 8 years ago
parent
commit
04e9c2bf0c
  1. 5
      spring-tx/src/test/java/org/springframework/dao/annotation/PersistenceExceptionTranslationPostProcessorTests.java

5
spring-tx/src/test/java/org/springframework/dao/annotation/PersistenceExceptionTranslationPostProcessorTests.java

@ -1,5 +1,5 @@ @@ -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");
* you may not use this file except in compliance with the License.
@ -22,6 +22,7 @@ import org.aspectj.lang.JoinPoint; @@ -22,6 +22,7 @@ import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.junit.Test;
import org.springframework.aop.Advisor;
import org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator;
import org.springframework.aop.framework.Advised;
@ -138,7 +139,7 @@ public class PersistenceExceptionTranslationPostProcessorTests { @@ -138,7 +139,7 @@ public class PersistenceExceptionTranslationPostProcessorTests {
@Aspect
public static class LogAllAspect {
@Before("execution(void *.additionalMethod())")
@Before("execution(void *.additionalMethod(*))")
public void log(JoinPoint jp) {
System.out.println("Before " + jp.getSignature().getName());
}

Loading…
Cancel
Save