Package org.locationtech.geogig.api

Examples of org.locationtech.geogig.api.MemoryModule


    }

    @Override
    public Context build(Hints hints) {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new MemoryModule(platform),
                        new HintsModule(hints))).getInstance(Context.class);
    }
View Full Code Here


    @Before
    public void setUp() throws IOException {
        File envHome = tempFolder.getRoot();
        Platform testPlatform = new TestPlatform(envHome);
        Context injector = Guice.createInjector(Modules.override(new GeogigModule()).with(
                new MemoryModule(testPlatform))).getInstance(Context.class);

        fakeGeogig = new GeoGIG(injector);
        Repository fakeRepo = fakeGeogig.getOrCreateRepository();
        odb = fakeRepo.objectDatabase();
        search = new DepthSearch(odb);
View Full Code Here

    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();
        indexDb.open();
View Full Code Here

            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

    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

TOP

Related Classes of org.locationtech.geogig.api.MemoryModule

Copyright © 2018 www.massapicom. 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.