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

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


    /**
     * @return job that describes the coveralls report
     * @throws IOException if an I/O error occurs
     */
    protected Job createJob() throws IOException {
        Git git = new GitRepository(project.getBasedir()).load();
        return new Job()
            .withRepoToken(repoToken)
            .withServiceName(serviceName)
            .withServiceJobId(serviceJobId)
            .withServiceBuildNumber(serviceBuildNumber)
View Full Code Here


            .withServiceBuildUrl("http://ci.com/build5")
            .withServiceEnvironment(environment)
            .withBranch("master")
            .withPullRequest("pull10")
            .withTimestamp(new Date(TEST_TIME))
            .withGit(new Git(null, head, "af456fge34acd", Arrays.asList(remote)));
    }
View Full Code Here

        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

        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

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.