Package com.github.koraktor.mavanagaiata.git

Examples of com.github.koraktor.mavanagaiata.git.GitTag


        RevCommit start = this.getCommit(this.getHeadObject());
        RevWalk revWalk = this.getRevWalk();
        RevFlag seenFlag = revWalk.newFlag("SEEN");

        int distance = -1;
        GitTag nextTag = null;
        HashSet<RevCommit> commits = new HashSet<RevCommit>();
        commits.add(start);
        while (!commits.isEmpty()) {
            distance ++;
            HashSet<RevCommit> nextCommits = new HashSet<RevCommit>();
View Full Code Here


        this.mockCommits.add(mockCommit("5979a86e9bb091fc792529bee68ed222000ebc7e", "3rd commit"));
        this.mockCommits.add(mockCommit("b3b28176c1a05b76fb9231abe2f2cbbf15a86118", "2nd commit"));
        this.mockCommits.add(mockCommit("e82314841e1d990eeb33878cae55dadc8a11bf68", "1st commit"));

        HashMap<String, GitTag> tags = new HashMap<String, GitTag>();
        GitTag tag1 = mock(GitTag.class);
        when(tag1.getDate()).thenReturn(new Date(1162580880000L));
        when(tag1.getName()).thenReturn("1.0.0");
        when(tag1.getTimeZone()).thenReturn(TimeZone.getTimeZone("GMT"));
        tags.put("5979a86e9bb091fc792529bee68ed222000ebc7e", tag1);
        GitTag tag2 = mock(GitTag.class);
        when(tag2.getDate()).thenReturn(new Date(1275131880000L));
        when(tag2.getName()).thenReturn("2.0.0");
        when(tag2.getTimeZone()).thenReturn(TimeZone.getTimeZone("GMT+2"));
        tags.put("06cee865ab7f006a58be39f1d46f01dcb1880105", tag2);

        when(this.repository.getBranch()).thenReturn("master");
        when(this.repository.getTags()).thenReturn(tags);
        doAnswer(new Answer() {
View Full Code Here

TOP

Related Classes of com.github.koraktor.mavanagaiata.git.GitTag

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.