*/
public abstract class StrutsSpringScopeTestCase<T> extends StrutsSpringTest<T> {
@Override
public void beforeResult(ActionInvocation invocation, String resultCode) {
final ConversationAdapter adapter = ConversationAdapter.getAdapter();
ConversationAdapter.setAdapter(new ConversationAdapter() {
private static final long serialVersionUID = 1L;
@Override
public Object getAction() {
return adapter.getAction();
}
@Override
public String getActionId() {
return adapter.getActionId();
}
@Override
public Map<String, String> getRequestContext() {
return adapter.getRequestContext();
}
@Override
public ConversationContext beginConversation(
String conversationName, long maxIdleTimeMillis) {
return adapter.beginConversation(conversationName, maxIdleTimeMillis);
}
@Override
public ConversationContext getConversationContext(
String conversationName, String conversationId) {
return adapter.getConversationContext(conversationName, conversationId);
}
@Override
public ConversationContext endConversation(String conversationName,
String conversationId) {
return adapter.endConversation(conversationName, conversationId);
}
@Override
public void doCleanup() {
conversationAdapter.set(adapter);