Package com.groupon.jenkins.dynamic.build.cause

Examples of com.groupon.jenkins.dynamic.build.cause.GithubLogEntry


    public void should_have_log_entries_for_push() throws IOException {
        Payload payload = new Payload(readFile("push.json"));
        Iterable<GithubLogEntry> logEntries = payload.getLogEntries();
        assertFalse(Iterables.isEmpty(logEntries));
        assertEquals(1, Iterables.size(logEntries));
        GithubLogEntry logEntry = Iterables.get(logEntries, 0);
        assertEquals("c2496e3fcc9a55b0a9f9318563a81aa2f26f4047", logEntry.getCommitId());
    }
View Full Code Here


        }
        return logEntries;
    }

    private GithubLogEntry convertToLogEntry(Map<String, Object> commit) {
        return new GithubLogEntry(commit.get("message").toString(), commit.get("url").toString(), commit.get("id").toString());
    }
View Full Code Here

TOP

Related Classes of com.groupon.jenkins.dynamic.build.cause.GithubLogEntry

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.