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());
}
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);
}
Aggregations