use of org.locationtech.geogig.api.TestPlatform 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.api.TestPlatform 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);
}
use of org.locationtech.geogig.api.TestPlatform in project GeoGig by boundlessgeo.
the class GeogigPy4JEntryPointTest method setUpDirectories.
@Before
public void setUpDirectories() throws IOException {
tempFolder = new TemporaryFolder();
tempFolder.create();
File homeDirectory = tempFolder.newFolder("fakeHomeDir").getCanonicalFile();
File currentDirectory = tempFolder.newFolder("testrepo").getCanonicalFile();
GlobalState.platform = new TestPlatform(currentDirectory, homeDirectory);
GlobalContextBuilder.builder = new CLITestContextBuilder(platform);
}
Aggregations