Package org.locationtech.geogig.api

Examples of org.locationtech.geogig.api.TestPlatform


    @Before
    public void setUp() throws Exception {
        File root = tmpFolder.getRoot();
        tmpFolder.newFolder(".geogig");
        platform = new TestPlatform(root);
        platform.setUserHome(tmpFolder.newFolder("fake_home"));
        database = createDatabase(platform);
        database.open();
    }
View Full Code Here


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

    @Before
    public void setUp() throws Exception {
        File root = tmpFolder.getRoot();
        tmpFolder.newFolder(".geogig");
        platform = new TestPlatform(root);
        platform.setUserHome(tmpFolder.newFolder("fake_home"));
        database = createDatabase(platform);
        database.open();
    }
View Full Code Here

        public Context getInjector() {
            return injector;
        }

        private ContextBuilder createInjectorBuilder() {
            Platform testPlatform = new TestPlatform(envHome){
                @Override
                public long currentTimeMillis(){
                    return 1000;
                }
            };
View Full Code Here

    public static void setUpDirectories() throws IOException {
        File homeDirectory = tempFolder.newFolder("fakeHomeDir").getCanonicalFile();
        File currentDirectory = tempFolder.newFolder("testrepo").getCanonicalFile();
        if (GlobalState.platform == null) {
            GlobalState.platform = new TestPlatform(currentDirectory, homeDirectory);
        } else {
            GlobalState.platform.setWorkingDir(currentDirectory);
            GlobalState.platform.setUserHome(homeDirectory);
        }
    }
View Full Code Here

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

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

        GlobalContextBuilder.builder = new TestContextBuilder(testPlatform);
        return GlobalContextBuilder.builder.build();
    }

    protected Platform createPlatform() {
        Platform testPlatform = new TestPlatform(envHome);
        return testPlatform;
    }
View Full Code Here

        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 JETestStorageModule(),
                        new TestModule(testPlatform))).getInstance(Context.class);
    }
View Full Code Here

    @Before
    public void setUp() {
        File root = folder.getRoot();
        folder.newFolder(".geogig");
        File home = folder.newFolder("home");
        platform = new TestPlatform(root);
        platform.setUserHome(home);
        hints = new Hints();

        envProvider = new EnvironmentBuilder(platform);
View Full Code Here

TOP

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

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.