Search in sources :

Example 1 with NPMStoragePathCalculator

use of org.commonjava.indy.pkg.npm.content.NPMStoragePathCalculator in project indy by Commonjava.

the class PackageMetadataMergerTest method setup.

@Before
public void setup() throws Exception {
    cacheProvider = new FileCacheProvider(temp.newFolder("cache"), new IndyPathGenerator(Collections.singleton(new NPMStoragePathCalculator(new SpecialPathManagerImpl()))), new NoOpFileEventManager(), new TransferDecoratorManager(new NoOpTransferDecorator()), false);
    mapper = new IndyObjectMapper(true);
    mapper.registerModule(new PackageSerializerModule());
}
Also used : FileCacheProvider(org.commonjava.maven.galley.cache.FileCacheProvider) NoOpFileEventManager(org.commonjava.maven.galley.event.NoOpFileEventManager) NPMStoragePathCalculator(org.commonjava.indy.pkg.npm.content.NPMStoragePathCalculator) NoOpTransferDecorator(org.commonjava.maven.galley.io.NoOpTransferDecorator) IndyObjectMapper(org.commonjava.indy.model.core.io.IndyObjectMapper) TransferDecoratorManager(org.commonjava.maven.galley.io.TransferDecoratorManager) IndyPathGenerator(org.commonjava.indy.content.IndyPathGenerator) PackageSerializerModule(org.commonjava.indy.pkg.npm.model.io.PackageSerializerModule) SpecialPathManagerImpl(org.commonjava.maven.galley.io.SpecialPathManagerImpl) Before(org.junit.Before)

Aggregations

IndyPathGenerator (org.commonjava.indy.content.IndyPathGenerator)1 IndyObjectMapper (org.commonjava.indy.model.core.io.IndyObjectMapper)1 NPMStoragePathCalculator (org.commonjava.indy.pkg.npm.content.NPMStoragePathCalculator)1 PackageSerializerModule (org.commonjava.indy.pkg.npm.model.io.PackageSerializerModule)1 FileCacheProvider (org.commonjava.maven.galley.cache.FileCacheProvider)1 NoOpFileEventManager (org.commonjava.maven.galley.event.NoOpFileEventManager)1 NoOpTransferDecorator (org.commonjava.maven.galley.io.NoOpTransferDecorator)1 SpecialPathManagerImpl (org.commonjava.maven.galley.io.SpecialPathManagerImpl)1 TransferDecoratorManager (org.commonjava.maven.galley.io.TransferDecoratorManager)1 Before (org.junit.Before)1