Search in sources :

Example 1 with StoreEventDispatcherStub

use of org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub in project indy by Commonjava.

the class DataFileStoreDataManagerTest method setup.

@Before
public void setup() throws Exception {
    fileCfg = new DataFileConfiguration(temp.newFolder("data"), temp.newFolder("work"));
    final DataFileManager fileMgr = new DataFileManager(fileCfg, new DataFileEventManager());
    mgr = new DataFileStoreDataManager(fileMgr, new IndyObjectMapper(false), new StoreEventDispatcherStub(), new DefaultIndyConfiguration());
}
Also used : IndyObjectMapper(org.commonjava.indy.model.core.io.IndyObjectMapper) DataFileEventManager(org.commonjava.indy.subsys.datafile.change.DataFileEventManager) DataFileManager(org.commonjava.indy.subsys.datafile.DataFileManager) DataFileConfiguration(org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration) StoreEventDispatcherStub(org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub) DefaultIndyConfiguration(org.commonjava.indy.conf.DefaultIndyConfiguration) Before(org.junit.Before)

Example 2 with StoreEventDispatcherStub

use of org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub 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

DefaultIndyConfiguration (org.commonjava.indy.conf.DefaultIndyConfiguration)2 StoreEventDispatcherStub (org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub)2 IndyObjectMapper (org.commonjava.indy.model.core.io.IndyObjectMapper)2 DataFileManager (org.commonjava.indy.subsys.datafile.DataFileManager)2 DataFileEventManager (org.commonjava.indy.subsys.datafile.change.DataFileEventManager)2 Before (org.junit.Before)2 StoreEventDispatcher (org.commonjava.indy.data.StoreEventDispatcher)1 DataFileConfiguration (org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration)1