@Test(expected = RuntimeException.class) public void afterAspectIsCalledIfMethodThrowsException() { assertFalse(afterAdvice.isAfterCalled()); try { simpleService.throwsRuntimeException(); } finally { assertTrue(afterAdvice.isAfterCalled()); } }
public boolean isAfterCalled() { return afterCalled; }
AfterAdvice { public boolean isAfterCalled() { return afterCalled; } }
AfterAdvice { public boolean isAfterCalled() { return afterCalled; }  }
AfterAdvice { public boolean isAfterCalled() { return afterCalled; }  void reset(); boolean isAfterCalled(); @After("execution(* *(..))") void exiting(JoinPoint joinPoint); }
AfterAdvice { public boolean isAfterCalled() { return afterCalled; }  void reset(); boolean isAfterCalled(); @After("execution(* *(..))") void exiting(JoinPoint joinPoint);  }