Search in sources :

Example 6 with DataFileConfiguration

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

the class LegacyQuartzDBMigrationActionTest method prepare.

@Before
public void prepare() throws Exception {
    File file = temp.getRoot();
    data = new File(file, INDY_HOME + "/" + DataFileConfiguration.DEFAULT_DATA_SUBDIR);
    System.setProperty("indy.home", file.getAbsolutePath() + "/" + INDY_HOME);
    data.mkdirs();
    new File(data, "scheduler.mv.db").createNewFile();
    new File(data, "scheduler.trace.db").createNewFile();
    new File(data, "content-index").mkdir();
    new File(data, "indy").mkdir();
    new File(data, "promote").mkdir();
    new File(data, "schedule.mv.db").createNewFile();
    config = new DataFileConfiguration();
    action = new LegacyQuartzDBMigrationAction(config);
}
Also used : DataFileConfiguration(org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration) File(java.io.File) Before(org.junit.Before)

Aggregations

DataFileConfiguration (org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration)6 IndyObjectMapper (org.commonjava.indy.model.core.io.IndyObjectMapper)3 DataFileManager (org.commonjava.indy.subsys.datafile.DataFileManager)3 Before (org.junit.Before)3 File (java.io.File)2 IOException (java.io.IOException)2 PostConstruct (javax.annotation.PostConstruct)2 DataFileEventManager (org.commonjava.indy.subsys.datafile.change.DataFileEventManager)2 StandardTypeMapper (org.commonjava.maven.galley.maven.internal.type.StandardTypeMapper)2 XMLInfrastructure (org.commonjava.maven.galley.maven.parse.XMLInfrastructure)2 MemoryNotFoundCache (org.commonjava.maven.galley.nfc.MemoryNotFoundCache)2 GStringTemplateEngine (groovy.text.GStringTemplateEngine)1 ChangeSummary (org.commonjava.indy.audit.ChangeSummary)1 DefaultIndyConfiguration (org.commonjava.indy.conf.DefaultIndyConfiguration)1 StoreEventDispatcherStub (org.commonjava.indy.core.data.testutil.StoreEventDispatcherStub)1 DefaultStorageProviderConfiguration (org.commonjava.indy.filer.def.conf.DefaultStorageProviderConfiguration)1 DataFileStoreDataManager (org.commonjava.indy.flat.data.DataFileStoreDataManager)1 MemoryStoreDataManager (org.commonjava.indy.mem.data.MemoryStoreDataManager)1 SetbackConfig (org.commonjava.indy.setback.conf.SetbackConfig)1 DataFile (org.commonjava.indy.subsys.datafile.DataFile)1