Spring AOP - @Pointcut: @Before advice for @Test methods does not work
问题 I am working with: Spring Framework 4.3.2 AspectJ 1.8.9 JUnit Gradle The project is based in multi-modules. In src/main/java ( main ) I have some @Aspect classes and they work how is expected. I can confirm it through Runtime and Testing Now I need for JUnit through logging show the @Test method name that is executed Therefore in src/test/java ( test ) I have the following: class TestPointcut { @Pointcut("execution(@org.junit.Test * *())") public void testPointcut(){} } @Aspect @Component