Consider I wrote AOP pointcut and made a misprint in it:
@Pointcut("within(com.example.servic..*)")
public void serviceMethod() {}
There is "servic" instead of "service".
I am going to use this pointcut to apply security check before service method invocation. Due to the misprint the security check won't be applied but there will be no error message also.
It seems to be very easy to make such mistakes during refactoring for example.
The question is: how do you check that advices are really applied in your projects?
Thanks in advance!
Perfect candidate for a unit test.