Examples of JGitFileSystemProvider


Examples of org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider

    public void testUsingProvidedPath() throws IOException {

        final File dir = createTempDirectory();
        System.setProperty("org.uberfire.nio.git.dir", dir.toString());

        final JGitFileSystemProvider provider = new JGitFileSystemProvider();

        final URI newRepo = URI.create("git://repo-name");

        provider.newFileSystem(newRepo, EMPTY_ENV);

        final String[] names = dir.list();

        assertThat(names).isNotEmpty().contains(".niogit");
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.