100101102103104105106107108109110
MatcherAssert.assertThat( comments.iterate(Collections.<String, String>emptyMap()), Matchers.<PullComment>iterableWithSize(2) ); } finally { container.stop(); } } /** * RtPullComments can fetch pull comments for a pull request.
131132133134135136137138139140141
MatcherAssert.assertThat( comments.iterate(1, Collections.<String, String>emptyMap()), Matchers.<PullComment>iterableWithSize(2) ); } finally { container.stop(); } } /** * RtPullComments can post a new a pull comment.
171172173174175176177178179180181
MatcherAssert.assertThat( new PullComment.Smart(pullComment).commitId(), Matchers.equalTo(commit) ); } finally { container.stop(); } } /** * RtPullComments can reply to an existing pull comment.
214215216217218219220221222223224
MatcherAssert.assertThat( new PullComment.Smart(pullComment).reply(), Matchers.equalTo(number) ); } finally { container.stop(); } } /** * RtPullComments can remove a pull comment.
243244245246247248249250251252253
MatcherAssert.assertThat( query.uri().toString(), Matchers.endsWith("/repos/johnny/test/pulls/comments/2") ); } finally { container.stop(); } } /** * This method returns a Repo for testing.
102103104105106107108109110111112
MatcherAssert.assertThat( query.body(), Matchers.equalTo("{\"patch\":\"test\"}") ); } finally { container.stop(); } } /** * RtContent should be able to compare different instances.
161162163164165166167168169170171
container.take().headers().get(HttpHeaders.ACCEPT).get(0), Matchers.is("application/vnd.github.v3.raw") ); } finally { stream.close(); container.stop(); } } /** * Mock repo for GhIssue creation.
8889909192939495969798
MatcherAssert.assertThat( emails.add(Collections.singletonList(email)).iterator().next(), Matchers.equalTo(email) ); } finally { container.stop(); } } /** * RtUserEmails can remove emails.
7677787980818283848586
MatcherAssert.assertThat( container.take().body(), Matchers.equalTo("{\"hello\":\"world\"}") ); } finally { container.stop(); } } /** * RtMarkdown should be able to return raw output.
105106107108109110111112113114
MatcherAssert.assertThat( container.take().body(), Matchers.equalTo("Hello World!") ); } finally { container.stop(); } } }