callee.adviseWithAroundStack();
assertEquals("adviseWithAroundStack ", LOG);
((Advisable) this).aw_addAdvice(
"call(* test.intercept.call.Callee.adviseWithAroundStack(..))",
new AroundAdvice() {
public Object invoke(JoinPoint jp) throws Throwable {
InterceptTest.log("around2_pre_call ");
Object result = jp.proceed();
InterceptTest.log("around2_post_call ");
return result;
}
}
);
LOG = "";
callee.adviseWithAroundStack();
assertEquals("around2_pre_call adviseWithAroundStack around2_post_call ", LOG);
((Advisable) this).aw_addAdvice(
"call(* test.intercept.call.Callee.adviseWithAroundStack(..))",
new AroundAdvice() {
public Object invoke(JoinPoint jp) throws Throwable {
InterceptTest.log("around3_pre_call ");
Object result = jp.proceed();
InterceptTest.log("around3_post_call ");
return result;