Merged from branch DEV/mward/head_cachefactory_conf to HEAD

54858: ALF-19668: Further cache configuration overrides
  54859: ALF-19668: added clustered cache types to properties, e.g. createLocalCache, createCache, createInvalidateRemovalCache.
  54867: ALF-19668: ClusterAwareCacheFactory now uses *.cluster.type properties to determine cache type.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55148 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2013-09-09 18:41:27 +00:00
parent fce64e27a9
commit 57e814314c
7 changed files with 216 additions and 99 deletions

View File

@@ -52,28 +52,4 @@ public class DefaultCacheFactoryTest
assertEquals(4, cache.getMaxItems());
assertEquals("cache.someCache", cache.getCacheName());
}
@Test
public void canCreateLocalCache()
{
cache = (DefaultSimpleCache<String, String>) cacheFactory.createLocalCache("cache.someCache");
assertEquals(4, cache.getMaxItems());
assertEquals("cache.someCache", cache.getCacheName());
}
@Test
public void canCreateInvalidatingCache()
{
cache = (DefaultSimpleCache<String, String>) cacheFactory.createInvalidateRemovalCache("cache.someCache");
assertEquals(4, cache.getMaxItems());
assertEquals("cache.someCache", cache.getCacheName());
}
@Test
public void canCreateInvalidateRemovalCache()
{
cache = (DefaultSimpleCache<String, String>) cacheFactory.createInvalidateRemovalCache("cache.someCache");
assertEquals(4, cache.getMaxItems());
assertEquals("cache.someCache", cache.getCacheName());
}
}