Search in sources :

Example 1 with AbstractCacheManagerJUnitTest

use of org.ff4j.test.cache.AbstractCacheManagerJUnitTest in project ff4j by ff4j.

the class AbstractCacheManagerTest method testAbstractCacheManagerForCoverage.

@Test
public void testAbstractCacheManagerForCoverage() {
    AbstractCacheManagerJUnitTest ac = new AbstractCacheManagerJUnitTest() {

        protected FF4JCacheManager getCacheManager() {
            if (cacheManager == null) {
                cacheManager = new InMemoryCacheManager();
            }
            return cacheManager;
        }
    };
    ac.initialize();
    ac.testClear();
    ac.testPutOK();
    ac.clean();
    ac.testPutSeveral();
    ac.testEvictOK();
    ac.clean();
    ac.testPutAvoidDoublon();
    ac.clean();
    ac.testEvictFeatureNotExist();
    ac.clean();
    Assert.assertNotNull(ac);
}
Also used : AbstractCacheManagerJUnitTest(org.ff4j.test.cache.AbstractCacheManagerJUnitTest) InMemoryCacheManager(org.ff4j.cache.InMemoryCacheManager) AbstractCacheManagerJUnitTest(org.ff4j.test.cache.AbstractCacheManagerJUnitTest) Test(org.junit.Test)

Aggregations

InMemoryCacheManager (org.ff4j.cache.InMemoryCacheManager)1 AbstractCacheManagerJUnitTest (org.ff4j.test.cache.AbstractCacheManagerJUnitTest)1 Test (org.junit.Test)1