package com.jinhe.tss.component.cache;
import javax.servlet.http.HttpServletResponse;
import org.springframework.mock.web.MockHttpServletResponse;
import com.jinhe.tss.component.TxTestSupport;
import com.jinhe.tss.core.cachepool.strategy.CacheConstants;
import com.jinhe.tss.core.sso.context.Context;
public class CacheStrategyActionTest extends TxTestSupport {
public void testCacheStrategyAction() {
HttpServletResponse response = new MockHttpServletResponse();
Context.setResponse(response);
CacheStrategyAction cacheStrategyAction = new CacheStrategyAction();
cacheStrategyAction.getAllCacheStrategy4Tree();
cacheStrategyAction.setCode("threadpool");
cacheStrategyAction.getCacheStrategyInfo();
cacheStrategyAction.setCode(CacheConstants.XFORM_TEMPLATE_POOL);
cacheStrategyAction.setKey("template/cache/xform/CacheStrategyXForm.xml");
cacheStrategyAction.viewCachedItem();
}
}