Examples of JGitRepository


Examples of com.github.koraktor.mavanagaiata.git.jgit.JGitRepository

     * @see GitRepository
     * @throws GitRepositoryException if retrieving information from the Git
     *         repository fails
     */
    protected void initRepository() throws GitRepositoryException {
        this.repository = new JGitRepository(this.baseDir, this.gitDir);
        this.repository.check();
        this.repository.setHeadRef(this.head);
    }
View Full Code Here

Examples of com.github.koraktor.mavanagaiata.git.jgit.JGitRepository

        File gitDir = mock(File.class);
        this.mojo.baseDir = baseDir;
        this.mojo.gitDir = gitDir;
        this.mojo.head = "HEAD";

        JGitRepository repo = mock(JGitRepository.class);
        whenNew(JGitRepository.class).withArguments(baseDir, gitDir).thenReturn(repo);

        this.mojo.initRepository();

        verify(repo).check();
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.