Search in sources :

Example 1 with SetbackConfig

use of org.commonjava.indy.setback.conf.SetbackConfig in project indy by Commonjava.

the class SetBackSettingsManagerTest method setup.

@Before
public void setup() throws Exception {
    storeManager = new MemoryStoreDataManager(true);
    final File dataSrc = new File("./src/main/data");
    final File data = temp.newFolder("data");
    FileUtils.copyDirectory(dataSrc, data);
    final DataFileConfiguration config = new DataFileConfiguration(data, temp.newFolder("work"));
    final DataFileManager fileManager = new DataFileManager(config, new DataFileEventManager());
    final TemplatingEngine templates = new TemplatingEngine(new GStringTemplateEngine(), fileManager);
    manager = new SetBackSettingsManager(storeManager, templates, fileManager, new SetbackConfig(true));
}
Also used : MemoryStoreDataManager(org.commonjava.indy.mem.data.MemoryStoreDataManager) DataFileEventManager(org.commonjava.indy.subsys.datafile.change.DataFileEventManager) DataFileManager(org.commonjava.indy.subsys.datafile.DataFileManager) TemplatingEngine(org.commonjava.indy.subsys.template.TemplatingEngine) DataFileConfiguration(org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration) GStringTemplateEngine(groovy.text.GStringTemplateEngine) SetbackConfig(org.commonjava.indy.setback.conf.SetbackConfig) DataFile(org.commonjava.indy.subsys.datafile.DataFile) File(java.io.File) Before(org.junit.Before)

Aggregations

GStringTemplateEngine (groovy.text.GStringTemplateEngine)1 File (java.io.File)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 DataFileManager (org.commonjava.indy.subsys.datafile.DataFileManager)1 DataFileEventManager (org.commonjava.indy.subsys.datafile.change.DataFileEventManager)1 DataFileConfiguration (org.commonjava.indy.subsys.datafile.conf.DataFileConfiguration)1 TemplatingEngine (org.commonjava.indy.subsys.template.TemplatingEngine)1 Before (org.junit.Before)1