Search in sources :

Example 6 with IniFileConfigDatabase

use of org.locationtech.geogig.storage.fs.IniFileConfigDatabase in project GeoGig by boundlessgeo.

the class JEGraphDatabaseV2Test method createDatabase.

@Override
protected GraphDatabase createDatabase(Platform platform) throws Exception {
    File root = platform.pwd();
    Preconditions.checkState(new File(root, ".geogig").exists());
    envProvider = new EnvironmentBuilder(platform);
    ConfigDatabase configDB = new IniFileConfigDatabase(platform);
    return new JEGraphDatabase_v0_2(configDB, envProvider, new Hints());
}
Also used : Hints(org.locationtech.geogig.repository.Hints) ConfigDatabase(org.locationtech.geogig.storage.ConfigDatabase) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase) File(java.io.File) IniFileConfigDatabase(org.locationtech.geogig.storage.fs.IniFileConfigDatabase)

Aggregations

ConfigDatabase (org.locationtech.geogig.storage.ConfigDatabase)6 IniFileConfigDatabase (org.locationtech.geogig.storage.fs.IniFileConfigDatabase)6 File (java.io.File)5 Hints (org.locationtech.geogig.repository.Hints)4 Cache (com.google.common.cache.Cache)1 AbstractModule (com.google.inject.AbstractModule)1 Module (com.google.inject.Module)1 Before (org.junit.Before)1 Context (org.locationtech.geogig.api.Context)1 Platform (org.locationtech.geogig.api.Platform)1 TestPlatform (org.locationtech.geogig.api.TestPlatform)1 DecoratorProvider (org.locationtech.geogig.di.DecoratorProvider)1 GuiceInjector (org.locationtech.geogig.di.GuiceInjector)1 ObjectSerializingFactory (org.locationtech.geogig.storage.ObjectSerializingFactory)1 DataStreamSerializationFactoryV1 (org.locationtech.geogig.storage.datastream.DataStreamSerializationFactoryV1)1 HeapObjectDatabse (org.locationtech.geogig.storage.memory.HeapObjectDatabse)1 HeapStagingDatabase (org.locationtech.geogig.storage.memory.HeapStagingDatabase)1