*
* @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);
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(
comments.iterate(
Collections.<String, String>emptyMap()
),
Matchers.<PullComment>iterableWithSize(2)
);
}