java - Creating a pointcut in Aspectj for each Junit test in a testsuite -
Halo Im bothered to integrate the aspect with aspect testing.
I need to get a separate log for each test in a testuite so I need to know in my aspect when a new test case is going on and when it ends. How can I define such a point?
The following point link is not working for me, it is only being entered once.
pointcut testIsAboutToBegin (): execution (* *. Test (..));
How about using the advice around?
Rating around point: Execution (Public Zero Test * (..)); Exposes around zero () Exception: ApproachST () {LOG.info ("Start"); getting ahead (); LOG.info ("stop"); }
Comments
Post a Comment