Examples of TestPlatform


Examples of org.locationtech.geogig.api.TestPlatform

        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

Examples of org.locationtech.geogig.api.TestPlatform

        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

Examples of org.locationtech.geogig.api.TestPlatform

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

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

Examples of org.locationtech.geogig.api.TestPlatform

        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

Examples of org.locationtech.geogig.api.TestPlatform

    @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

Examples of org.locationtech.geogig.api.TestPlatform

    private ObjectId fakeTreeMetadataId = ObjectId.forString("fakeMdId");

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

Examples of org.locationtech.geogig.api.TestPlatform

    @Before
    public void before() {
        tempFolder.newFolder(".geogig");
        File workingDirectory = tempFolder.getRoot();
        Platform platform = new TestPlatform(workingDirectory);
        executorService = Executors.newFixedThreadPool(4);
        index = createIndex(platform, executorService);
    }
View Full Code Here

Examples of org.locationtech.geogig.api.TestPlatform

    @Rule
    public ExpectedException exception = ExpectedException.none();

    @Override
    protected Platform createPlatform() {
        Platform testPlatform = new TestPlatform(envHome) {
            @Override
            public int availableProcessors() {
                return 2;
            }
        };
View Full Code Here

Examples of org.locationtech.geogig.api.TestPlatform

    @Before
    public void beforeTest() throws Exception {

        File workingDirectory = tmp.newFolder("repo");
        File userHomeDirectory = tmp.newFolder("home");
        TestPlatform platform = new TestPlatform(workingDirectory);
        platform.setUserHome(userHomeDirectory);
        Context injector = new CLITestContextBuilder(platform).build();
        GeoGIG geogig = new GeoGIG(injector);
        geogig.command(InitOp.class).call();
        geogig.command(ConfigOp.class).setAction(ConfigAction.CONFIG_SET).setName("user.name")
                .setValue("gabriel").call();
View Full Code Here

Examples of org.locationtech.geogig.api.TestPlatform

        final StagingDatabaseCacheFactory indexCacheFac = mock(StagingDatabaseCacheFactory.class);
        when(indexCacheFac.get()).thenReturn(indexCache);

        File workingDirectory = tmpFolder.getRoot();
        final Platform platform = new TestPlatform(workingDirectory);

        Module module = new AbstractModule() {

            @Override
            protected void configure() {
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.