Search in sources :

Example 1 with LocationExpander

use of org.commonjava.maven.galley.spi.transport.LocationExpander in project indy by Commonjava.

the class MavenMetadataGeneratorTest method setup.

@Before
public void setup() throws Exception {
    stores = new MemoryStoreDataManager(true);
    final LocationExpander locations = new IndyLocationExpander(stores);
    final DownloadManager downloads = new DefaultDownloadManager(stores, fixture.getTransferManager(), locations);
    final XMLInfrastructure xml = new XMLInfrastructure();
    final TypeMapper types = new StandardTypeMapper();
    final MavenMetadataMerger merger = new MavenMetadataMerger(Collections.emptyList());
    final GroupMergeHelper helper = new GroupMergeHelper(downloads);
    DefaultDirectContentAccess contentAccess = new DefaultDirectContentAccess(downloads, Executors.newCachedThreadPool());
    generator = new MavenMetadataGenerator(contentAccess, stores, xml, types, merger, helper, new MemoryNotFoundCache());
    metadataReader = new MavenMetadataReader(xml, locations, fixture.getArtifactMetadataManager(), fixture.getXPathManager());
}
Also used : StandardTypeMapper(org.commonjava.maven.galley.maven.internal.type.StandardTypeMapper) TypeMapper(org.commonjava.maven.galley.maven.spi.type.TypeMapper) MemoryNotFoundCache(org.commonjava.maven.galley.nfc.MemoryNotFoundCache) DownloadManager(org.commonjava.indy.content.DownloadManager) DefaultDownloadManager(org.commonjava.indy.core.content.DefaultDownloadManager) LocationExpander(org.commonjava.maven.galley.spi.transport.LocationExpander) IndyLocationExpander(org.commonjava.indy.content.IndyLocationExpander) MavenMetadataMerger(org.commonjava.indy.pkg.maven.content.group.MavenMetadataMerger) MemoryStoreDataManager(org.commonjava.indy.mem.data.MemoryStoreDataManager) IndyLocationExpander(org.commonjava.indy.content.IndyLocationExpander) XMLInfrastructure(org.commonjava.maven.galley.maven.parse.XMLInfrastructure) DefaultDownloadManager(org.commonjava.indy.core.content.DefaultDownloadManager) MavenMetadataReader(org.commonjava.maven.galley.maven.parse.MavenMetadataReader) DefaultDirectContentAccess(org.commonjava.indy.core.content.DefaultDirectContentAccess) StandardTypeMapper(org.commonjava.maven.galley.maven.internal.type.StandardTypeMapper) GroupMergeHelper(org.commonjava.indy.core.content.group.GroupMergeHelper) Before(org.junit.Before)

Example 2 with LocationExpander

use of org.commonjava.maven.galley.spi.transport.LocationExpander in project indy by Commonjava.

the class DefaultDownloadManagerTest method setup.

@Before
public void setup() throws IOException, GalleyInitException {
    core = new GalleyCoreBuilder(new FileCacheProviderFactory(temp.newFolder("cache"))).build();
    storeManager = new MemoryStoreDataManager(true);
    LocationExpander locationExpander = new IndyLocationExpander(storeManager);
    downloadManager = new DefaultDownloadManager(storeManager, core.getTransferManager(), locationExpander);
}
Also used : IndyLocationExpander(org.commonjava.indy.content.IndyLocationExpander) LocationExpander(org.commonjava.maven.galley.spi.transport.LocationExpander) GalleyCoreBuilder(org.commonjava.maven.galley.GalleyCoreBuilder) MemoryStoreDataManager(org.commonjava.indy.mem.data.MemoryStoreDataManager) IndyLocationExpander(org.commonjava.indy.content.IndyLocationExpander) FileCacheProviderFactory(org.commonjava.maven.galley.cache.FileCacheProviderFactory) Before(org.junit.Before)

Aggregations

IndyLocationExpander (org.commonjava.indy.content.IndyLocationExpander)2 MemoryStoreDataManager (org.commonjava.indy.mem.data.MemoryStoreDataManager)2 LocationExpander (org.commonjava.maven.galley.spi.transport.LocationExpander)2 Before (org.junit.Before)2 DownloadManager (org.commonjava.indy.content.DownloadManager)1 DefaultDirectContentAccess (org.commonjava.indy.core.content.DefaultDirectContentAccess)1 DefaultDownloadManager (org.commonjava.indy.core.content.DefaultDownloadManager)1 GroupMergeHelper (org.commonjava.indy.core.content.group.GroupMergeHelper)1 MavenMetadataMerger (org.commonjava.indy.pkg.maven.content.group.MavenMetadataMerger)1 GalleyCoreBuilder (org.commonjava.maven.galley.GalleyCoreBuilder)1 FileCacheProviderFactory (org.commonjava.maven.galley.cache.FileCacheProviderFactory)1 StandardTypeMapper (org.commonjava.maven.galley.maven.internal.type.StandardTypeMapper)1 MavenMetadataReader (org.commonjava.maven.galley.maven.parse.MavenMetadataReader)1 XMLInfrastructure (org.commonjava.maven.galley.maven.parse.XMLInfrastructure)1 TypeMapper (org.commonjava.maven.galley.maven.spi.type.TypeMapper)1 MemoryNotFoundCache (org.commonjava.maven.galley.nfc.MemoryNotFoundCache)1