Package org.eluder.coveralls.maven.plugin.domain.Git

Examples of org.eluder.coveralls.maven.plugin.domain.Git.Head


        assertThat(errors, is(empty()));
    }
   
    @Test
    public void testValidateWithoutGitCommitId() {
        Git git = new Git(null, new Head(null, null, null, null, null, null), null, null);
        ValidationErrors errors = new JobValidator(new Job().withRepoToken("ad3fg5").withGit(git)).validate();
        assertThat(errors, hasSize(1));
        assertThat(errors.get(0).getLevel(), is(Level.ERROR));
    }
View Full Code Here


        assertThat(errors.get(0).getLevel(), is(Level.ERROR));
    }
   
    @Test
    public void testValidateWithGit() {
        Git git = new Git(null, new Head("bc23af5", null, null, null, null, null), null, null);
        ValidationErrors errors = new JobValidator(new Job().withRepoToken("ad3fg5").withGit(git)).validate();
        assertThat(errors, is(empty()));
    }
View Full Code Here

public class JobTest {

    @Test
    public void testGetBranchWithRemote() {
        List<Remote> remotes = Arrays.asList(new Remote("origin", "git@github.com"));
        Git git = new Git(null, new Head(null, null, null, null, null, null), "master", remotes);
       
        Job job = new Job().withBranch("origin/master").withGit(git);
        assertEquals("master", job.getBranch());
    }
View Full Code Here

        assertEquals(Position.BEFORE, new JobLogger(jobMock).getPosition());
    }
   
    @Test
    public void testLogJobWithId() {
        Git git = new Git(null, new Head("ab679cf2d81ac", null, null, null, null, null), "master", null);
        when(jobMock.getServiceName()).thenReturn("service");
        when(jobMock.getServiceJobId()).thenReturn("666");
        when(jobMock.getRepoToken()).thenReturn("123456789");
        when(jobMock.isDryRun()).thenReturn(true);
        when(jobMock.getGit()).thenReturn(git);
View Full Code Here

TOP

Related Classes of org.eluder.coveralls.maven.plugin.domain.Git.Head

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.