7172737475767778798081
final GistComment comment = comments.get(1); MatcherAssert.assertThat( new GistComment.Smart(comment).body(), Matchers.equalTo(body) ); container.stop(); } /** * RtGistComments can iterate comments. * @throws Exception if there is any error
99100101102103104105106107108109
); MatcherAssert.assertThat( comments.iterate(), Matchers.<GistComment>iterableWithSize(2) ); container.stop(); } /** * RtGistComments can create a comment. * @throws Exception if there is any error
134135136137138139140141142143144
); MatcherAssert.assertThat( new GistComment.Smart(comment).body(), Matchers.equalTo(body) ); container.stop(); } /** * Create and return JsonObject to test. * @param body The body of the comment
7475767778798081828384
); MatcherAssert.assertThat( repo.events(), Matchers.<Event>iterableWithSize(2) ); container.stop(); } /** * RtRepo can fetch its labels. *
244245246247248249250251252253254
repo.patch(event(Event.ASSIGNED)); MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.PATCH) ); container.stop(); } /** * RtRepo can describe as a JSON object. *
8485868788899091929394
); MatcherAssert.assertThat( repo.coordinates(), Matchers.equalTo((Coordinates) new Coordinates.Simple(owner, name)) ); container.stop(); } /** * RtUsers can iterate users. * @throws Exception if there is any error
111112113114115116117118119120121
); MatcherAssert.assertThat( repos.iterate(identifier), Matchers.<Repo>iterableWithSize(2) ); container.stop(); } /** * RtRepos can remove a repo. * @throws Exception if some problem inside
139140141142143144145146147148149
MatcherAssert.assertThat( query.body(), Matchers.isEmptyString() ); } finally { container.stop(); } } /** * Create and return JsonObject to test response.
108109110111112113114115116117118
); MatcherAssert.assertThat( fork.json().getString(ORGANIZATION), Matchers.equalTo(organization) ); container.stop(); } /** * Create and return repo for testing. *
7576777879808182838485
MatcherAssert.assertThat( hooks.iterate(), Matchers.emptyIterable() ); } finally { container.stop(); } } /** * RtHooks can fetch non empty list of hooks.