421422423424425426427428429430431
}); assert !Manager.instance().isLongRunningConversation(); assert "failure".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("beginIf"); }
437438439440441442443444445446447
}); assert Manager.instance().isLongRunningConversation(); assert "success".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("foo"); }
453454455456457458459460461462463
}); assert Manager.instance().isLongRunningConversation(); assert "foo".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("endIf"); }
469470471472473474475476477478479
}); assert Manager.instance().isLongRunningConversation(); assert "failure".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("endIf"); }