Announcement Announcement Module
Collapse
No announcement yet.
Spring-AOP-JUnit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring-AOP-JUnit

    Hi,

    i try to stop the execution time of a method within a junit testcaes. Thatfore i want to proxy that testcase with AOP. The pointcut i use works with other, "normal" classes, but not with junit-testcases.
    Are there any issues(AOP-JUnit), which i should now? Or maybe has a solution?

    thx,
    Ray

  • #2
    Spring AOP is proxy-based. I.e. spring container returns aop-aware proxy instead of 'raw' bean and that proxy performs aop logic befor/after delegating the call to the 'raw' bean.

    It seems that you work directly with 'raw' test class, so, spring aop has no chance to be applied.

    Comment

    Working...
    X