Examples of GeogigModule


Examples of org.locationtech.geogig.di.GeogigModule

    StagingDatabase indexDb;

    @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();
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

            public long currentTimeMillis() {
                return REFERENCE_DATE.getTime();
            }
        };
        Context injector = Guice.createInjector(
                Modules.override(new GeogigModule()).with(new MemoryModule(testPlatform)))
                .getInstance(Context.class);

        fakeGeogig = new GeoGIG(injector, workingDirectory);
        assertNotNull(fakeGeogig.getOrCreateRepository());
        command = fakeGeogig.command(ParseTimestamp.class);
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

    public void setUp() throws Exception {

        File workingDirectory = tempFolder.newFolder("mockWorkingDir");
        Platform testPlatform = new TestPlatform(workingDirectory);
        Context injector = Guice.createInjector(
                Modules.override(new GeogigModule()).with(new MemoryModule(testPlatform)))
                .getInstance(Context.class);

        geogit = new GeoGIG(injector);
        assertNotNull(geogit.getOrCreateRepository());
        diffTree = geogit.command(DiffTree.class);
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

public class JERevTreeBuilderPerformanceTest extends RevTreeBuilderPerformanceTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JEStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

public class JELogOpPerformanceTest extends LogOpPerformanceTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.