package org.linlinjava.litemall.core;

import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@WebAppConfiguration
@RunWith(SpringRunner.class)
@SpringBootTest
public class ehcacheTest {


    @Test
    public  void  Test(){
        CacheManager cacheManager=CacheManager.getCacheManager("o2oCache");
        Cache cache=cacheManager.getCache("2");
    }
}
