use of org.infinispan.manager.DefaultCacheManager in project indy by Commonjava.
the class HttpProxyTest method setupClass.
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
use of org.infinispan.manager.DefaultCacheManager in project indy by Commonjava.
the class PromotionManagerTest method setupClass.
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
use of org.infinispan.manager.DefaultCacheManager in project indy by Commonjava.
the class FoloRecordCacheTest method setupClass.
// @Rule
// public TemporaryFolder temp = new TemporaryFolder();
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
sealed = cacheManager.getCache("sealed", true);
inProgress = cacheManager.getCache("in-progress", true);
}
use of org.infinispan.manager.DefaultCacheManager in project indy by Commonjava.
the class KojiMavenMetadataProviderTest method setup.
@Before
public void setup() throws Exception {
contentMetadata.clear();
Thread.currentThread().setName(named.getMethodName());
cacheMgr = new DefaultCacheManager();
String mdCacheName = "koji-maven-metadata";
cache = new CacheHandle(mdCacheName, cacheMgr.getCache(mdCacheName, true));
kojiConfig = new IndyKojiConfig();
kojiConfig.setEnabled(true);
kojiConfig.setLockTimeoutSeconds(2);
kojiConfig.setMaxConnections(2);
kojiConfig.setMetadataTimeoutSeconds(2);
kojiConfig.setRequestTimeoutSeconds(1);
kojiConfig.setStorageRootUrl(server.formatUrl("kojiroot"));
kojiConfig.setUrl(server.formatUrl("koji"));
kojiConfig.setTargetGroups(Collections.singletonMap("public", "public"));
}
use of org.infinispan.manager.DefaultCacheManager in project indy by Commonjava.
the class KojiMavenMetadataProviderTest method setupClass.
@BeforeClass
public static void setupClass() {
cacheManager = new DefaultCacheManager(new ConfigurationBuilder().simpleCache(true).build());
contentMetadata = cacheManager.getCache("content-metadata", true);
}
Aggregations