Package com.jcabi.github

Examples of com.jcabi.github.PullComments.pull()


     * @throws Exception If something goes wrong.
     */
    @Test
    public void iteratesRepoPullComments() throws Exception {
        final PullComments comments = comments();
        comments.pull()
            .repo()
            .pulls()
            .create("new", "", "")
            .comments()
            .post("new pull comment", "new commit", "/p", 1);
View Full Code Here


            .comments()
            .post("new pull comment", "new commit", "/p", 1);
        comments.post("test 1", "tesst 1", "/test1", 1);
        MatcherAssert.assertThat(
            comments.iterate(
                comments.pull().number(),
                Collections.<String, String>emptyMap()
            ),
            Matchers.<PullComment>iterableWithSize(1)
        );
        MatcherAssert.assertThat(
View Full Code Here

        final PullComments comments = comments();
        comments.post("comment 1", "commit 1", "/commit1", 1);
        comments.post("comment 2", "commit 2", "/commit2", 2);
        MatcherAssert.assertThat(
            comments.iterate(
                comments.pull().number(),
                Collections.<String, String>emptyMap()
            ),
            Matchers.<PullComment>iterableWithSize(2)
        );
    }
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.