Search in sources :

Example 1 with NoOpNotFoundCache

use of org.commonjava.maven.galley.nfc.NoOpNotFoundCache in project indy by Commonjava.

the class DownloadManagerTest method setupTest.

@Before
public void setupTest() throws Exception {
    data = new MemoryStoreDataManager(true);
    WeftExecutorService rescanService = new PoolWeftExecutorService("test-rescan-executor", (ThreadPoolExecutor) Executors.newCachedThreadPool(), 2, 10f, false, null, null);
    downloader = new DefaultDownloadManager(data, fixture.getTransferManager(), new IndyLocationExpander(data), null, new NoOpNotFoundCache(), rescanService);
}
Also used : PoolWeftExecutorService(org.commonjava.cdi.util.weft.PoolWeftExecutorService) WeftExecutorService(org.commonjava.cdi.util.weft.WeftExecutorService) PoolWeftExecutorService(org.commonjava.cdi.util.weft.PoolWeftExecutorService) MemoryStoreDataManager(org.commonjava.indy.mem.data.MemoryStoreDataManager) IndyLocationExpander(org.commonjava.indy.content.IndyLocationExpander) DefaultDownloadManager(org.commonjava.indy.core.content.DefaultDownloadManager) NoOpNotFoundCache(org.commonjava.maven.galley.nfc.NoOpNotFoundCache) Before(org.junit.Before)

Aggregations

PoolWeftExecutorService (org.commonjava.cdi.util.weft.PoolWeftExecutorService)1 WeftExecutorService (org.commonjava.cdi.util.weft.WeftExecutorService)1 IndyLocationExpander (org.commonjava.indy.content.IndyLocationExpander)1 DefaultDownloadManager (org.commonjava.indy.core.content.DefaultDownloadManager)1 MemoryStoreDataManager (org.commonjava.indy.mem.data.MemoryStoreDataManager)1 NoOpNotFoundCache (org.commonjava.maven.galley.nfc.NoOpNotFoundCache)1 Before (org.junit.Before)1