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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -