use of org.locationtech.geogig.di.GeogigModule in project GeoGig by boundlessgeo.
the class WriteBackTest method setUp.
@Before
public void setUp() {
Context injector = Guice.createInjector(Modules.override(new GeogigModule()).with(new MemoryModule(null))).getInstance(Context.class);
odb = injector.objectDatabase();
indexDb = injector.stagingDatabase();
odb.open();
indexDb.open();
writeBack = injector.command(WriteBack.class);
}
use of org.locationtech.geogig.di.GeogigModule in project GeoGig by boundlessgeo.
the class MongoCommitOpTest method createInjector.
@Override
protected Context createInjector() {
File workingDirectory;
try {
workingDirectory = mockWorkingDirTempFolder.getRoot();
} catch (Exception e) {
throw Throwables.propagate(e);
}
Platform testPlatform = new TestPlatform(workingDirectory);
return Guice.createInjector(Modules.override(new GeogigModule()).with(new MongoTestStorageModule(), new TestModule(testPlatform))).getInstance(Context.class);
}
use of org.locationtech.geogig.di.GeogigModule in project GeoGig by boundlessgeo.
the class MongoConflictsTest method createInjector.
@Override
protected Context createInjector() {
File workingDirectory;
try {
workingDirectory = mockWorkingDirTempFolder.getRoot();
} catch (Exception e) {
throw Throwables.propagate(e);
}
Platform testPlatform = new TestPlatform(workingDirectory);
return Guice.createInjector(Modules.override(new GeogigModule()).with(new MongoTestStorageModule(), new TestModule(testPlatform))).getInstance(Context.class);
}
Aggregations