6566676869707172737475
); MatcherAssert.assertThat( label.json().getString("msg"), Matchers.equalTo("hi") ); container.stop(); } /** * GhLabel can execute PATCH request. *
9293949596979899100101102
); MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.PATCH) ); container.stop(); } /** * Create and return repo to test. * @return Repo
7879808182838485868788
MatcherAssert.assertThat( new Blob.Smart(blob).url(), Matchers.equalTo("http://localhost/1") ); } finally { container.stop(); } } /** * RtBlobs can get blob.
102103104105106107108109110111112
MatcherAssert.assertThat( comment.json().getString(bodyString), Matchers.equalTo(patchedBody) ); container.stop(); gistContainer.stop(); } /** * RtGistComment can remove comment. * @throws IOException if has some problems with json parsing.
128129130131132133134135
comment.remove(); MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.DELETE) ); container.stop(); } }
7576777879808182838485
MatcherAssert.assertThat( gist.read("hello"), Matchers.equalTo("success!") ); } finally { container.stop(); } } /** * RtGist should be able to do writes.
Matchers.containsString( "\"testFile\":{\"content\":\"testContent\"}" ) ); } finally { container.stop(); } } /** * RtGist can fork itself.
153154155156157158159160161162163
MatcherAssert.assertThat( forkedGist.read("hello"), Matchers.equalTo(content) ); } finally { container.stop(); } } /** * Gist.Smart can iterate through its files.
187188189190191192193194195196197
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith("/gists/testGetFiles") ); } finally { container.stop(); } } /** * RtGist can return a String representation correctly reflecting its URI.
210211212213214215216217218219220
MatcherAssert.assertThat( gist.toString(), Matchers.endsWith("/gists/testToString") ); } finally { container.stop(); } } /** * RtGist can unstar a starred Gist.