Package org.locationtech.geogig.api

Examples of org.locationtech.geogig.api.Context.repository()


                    .setOsmAPIUrl(OSMUtils.DEFAULT_API_ENDPOINT);
        }

        AsyncCommand<Optional<OSMReport>> asyncCommand;

        URL repo = context.repository().getLocation();
        String description = String
                .format("osm download filter: %s, bbox: %s, mapping: %s, update: %s, rebase: %s, repository: %s",
                        filterFileArg, bboxArg, mappingFileArg, update, rebase, repo);
        asyncCommand = AsyncContext.get().run(command, description);
View Full Code Here


        command.setMessage(message);
        command.setNoRaw(noRaw);

        AsyncCommand<Optional<OSMReport>> asyncCommand;

        URL repo = context.repository().getLocation();
        String description = String.format("osm import %s, repository: %s", urlOrFilepath, repo);
        asyncCommand = AsyncContext.get().run(command, description);

        final String rootPath = request.getRootRef().toString();
        MediaType mediaType = variant.getMediaType();
View Full Code Here

        when(mockRefParse.call()).thenReturn(Optional.of(master));

        Context injector = mock(Context.class);
        when(injector.command(eq(RefParse.class))).thenReturn(mockRefParse);
        when(injector.platform()).thenReturn(platform);
        when(injector.repository()).thenReturn(mockRepo);
        init.setContext(injector);

        assertTrue(ResolveGeogigDir.lookup(platform.pwd()).isPresent());
        assertNotNull(init.call());
        verify(platform, atLeastOnce()).pwd();
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.