@Test(expected = RuntimeException.class) public void afterReturningIsNotCalledIfExceptionIsThrown() { assertFalse(afterReturningAdvice.isAfterReturningCalled()); try { simpleService.returnsStringAndThrowsRuntimeException(); } finally { assertFalse(afterReturningAdvice.isAfterReturningCalled()); } }
boolean isAfterReturningCalled() { return afterReturningCalled; }
AfterReturningAdvice { boolean isAfterReturningCalled() { return afterReturningCalled; } }
AfterReturningAdvice { boolean isAfterReturningCalled() { return afterReturningCalled; }  }
AfterReturningAdvice { boolean isAfterReturningCalled() { return afterReturningCalled; }  void reset(); @AfterReturning(pointcut = "execution(* *(..))", returning = "string") void logResult(String string); }
AfterReturningAdvice { boolean isAfterReturningCalled() { return afterReturningCalled; }  void reset(); @AfterReturning(pointcut = "execution(* *(..))", returning = "string") void logResult(String string);  }