160161162163164165166167168169170
MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } } /** * Create and return repo for testing.
7374757677787980818283
); MatcherAssert.assertThat( new Pull.Smart(pull).title(), Matchers.equalTo(title) ); container.stop(); } /** * RtPulls can get a single pull request. * @throws Exception if some problem inside
9899100101102103104105106107108
final Pull pull = pulls.get(Tv.BILLION); MatcherAssert.assertThat( new Pull.Smart(pull).title(), Matchers.equalTo(title) ); container.stop(); } /** * RtPulls can iterate pulls. * @throws Exception if there is any error
124125126127128129130131132133134
); MatcherAssert.assertThat( pulls.iterate(), Matchers.<Pull>iterableWithSize(2) ); container.stop(); } /** * Create and return JsonObject to test. * @param title The title of the pull request
120121122123124125126127128129130
MatcherAssert.assertThat( query.uri().toString(), Matchers.endsWith("/repos/john/test/releases/assets/2") ); } finally { container.stop(); } } /** * RtReleaseAsset can remove itself.
146147148149150151152153154155156
MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } } /** * RtReleaseAsset can stream raw content.
175176177178179180181182183184185
MatcherAssert.assertThat( IOUtils.toString(stream), Matchers.notNullValue() ); } finally { container.stop(); } } /** * This method returns a Release for testing.
5960616263646566676869
final RtJson json = new RtJson(new ApacheRequest(container.home())); MatcherAssert.assertThat( json.fetch().getString("body"), Matchers.equalTo("hi") ); container.stop(); } /** * RtJson can execute PATCH request. *
8283848586878889
); MatcherAssert.assertThat( container.take().method(), Matchers.equalTo("PATCH") ); container.stop(); } }
116117118119120121122123124125126
MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } } /** * RtComment can return its JSon description.