439440441442443444445446447448449
}); assert Manager.instance().isLongRunningConversation(); assert "success".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("foo"); }
455456457458459460461462463464465
}); assert Manager.instance().isLongRunningConversation(); assert "foo".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("endIf"); }
471472473474475476477478479480481
}); assert Manager.instance().isLongRunningConversation(); assert "failure".equals(result); result = (String) ci.aroundInvoke( new MockInvocationContext() { @Override public Method getMethod() { return InterceptorTest.getMethod("endIf"); }