Examples of pulls()


Examples of com.jcabi.github.Repo.pulls()

     * @throws Exception if some problem inside
     */
    @Test
    public void canCreateAPull() throws Exception {
        final Repo repo = MkPullsTest.repo();
        final Pull pull = repo.pulls().create("hello", "", "");
        final Issue.Smart issue = new Issue.Smart(
            repo.issues().get(pull.number())
        );
        MatcherAssert.assertThat(
            issue.title(),
View Full Code Here

Examples of com.jcabi.github.Repo.pulls()

     * @throws Exception when a problem occurs.
     */
    @Test
    public void canGetCommentsNumberIfNonZero() throws Exception {
        final Repo repo =  MkPullTest.repo();
        final Pull pull = repo.pulls().create("", "", "");
        pull.comments().post("comment1", "path1", "how are you?", 1);
        pull.comments().post("comment2", "path2", "how are you2?", 2);
        MatcherAssert.assertThat(
            pull.json().getInt("comments"),
            Matchers.is(2)
View Full Code Here

Examples of com.jcabi.github.Repo.pulls()

     * @throws Exception when a problem occurs.
     */
    @Test
    public void canGetComments() throws Exception {
        final Repo repo =  MkPullTest.repo();
        final Pull pull = repo.pulls().create("", "", "");
        MatcherAssert.assertThat(
            pull.comments(),
            Matchers.notNullValue()
        );
    }
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.