Search in sources :

Example 11 with DataFileManager

use of org.commonjava.indy.subsys.datafile.DataFileManager in project indy by Commonjava.

the class LegacyDataMigrationActionTest method setup.

@Before
public void setup() throws Exception {
    dfm = new DataFileManager(temp.newFolder("stores"), new DataFileEventManager());
    IndyObjectMapper mapper = new IndyObjectMapper(true);
    final StoreEventDispatcher sed = new StoreEventDispatcherStub();
    action = new LegacyDataMigrationAction(dfm, new DataFileStoreDataManager(dfm, mapper, sed, new DefaultIndyConfiguration()), mapper);
}
Also used : StoreEventDispatcher(org.commonjava.indy.data.StoreEventDispatcher) IndyObjectMapper(org.commonjava.indy.model.core.io.IndyObjectMapper) DataFileEventManager(org.commonjava.indy.subsys.datafile.change.DataFileEventManager) DataFileManager(org.commonjava.indy.subsys.datafile.DataFileManager) StoreEventDispatcherStub(org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub) DefaultIndyConfiguration(org.commonjava.indy.conf.DefaultIndyConfiguration) Before(org.junit.Before)

Aggregations

DataFileManager (org.commonjava.indy.subsys.datafile.DataFileManager)11 DataFileEventManager (org.commonjava.indy.subsys.datafile.change.DataFileEventManager)10 Before (org.junit.Before)10 IndyObjectMapper (org.commonjava.indy.model.core.io.IndyObjectMapper)6 ScriptEngine (org.commonjava.indy.subsys.template.ScriptEngine)6 MemoryStoreDataManager (org.commonjava.indy.mem.data.MemoryStoreDataManager)5 MemoryNotFoundCache (org.commonjava.maven.galley.nfc.MemoryNotFoundCache)4 GStringTemplateEngine (groovy.text.GStringTemplateEngine)3 File (java.io.File)3 DefaultIndyConfiguration (org.commonjava.indy.conf.DefaultIndyConfiguration)3 DirectContentAccess (org.commonjava.indy.content.DirectContentAccess)3 DefaultContentDigester (org.commonjava.indy.core.content.DefaultContentDigester)3 DefaultContentManager (org.commonjava.indy.core.content.DefaultContentManager)3 DefaultDirectContentAccess (org.commonjava.indy.core.content.DefaultDirectContentAccess)3 DefaultDownloadManager (org.commonjava.indy.core.content.DefaultDownloadManager)3 MemoryPasswordManager (org.commonjava.maven.galley.auth.MemoryPasswordManager)3 SpecialPathManagerImpl (org.commonjava.maven.galley.io.SpecialPathManagerImpl)3 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 ContentDigester (org.commonjava.indy.content.ContentDigester)2 ContentManager (org.commonjava.indy.content.ContentManager)2