153154155156157158159160161162163
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith("/git/refs/tags") ); } finally { container.stop(); } } /** * RtReferences should be able to iterate over heads.
183184185186187188189190191192193
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith("/git/refs/heads") ); } finally { container.stop(); } } /** * This method returns a Repo for testing.
101102103104105106107108109110111
MatcherAssert.assertThat( event.json().getString("test"), Matchers.equalTo("events") ); } finally { container.stop(); } } /** * RtEvent should be able to compare different instances.
7374757677787980818283
MatcherAssert.assertThat( pull.commits(), Matchers.notNullValue() ); } finally { container.stop(); } } /** * RtPull should be able to retrieve files.
MatcherAssert.assertThat( pull.files().iterator().next().getString("file1"), Matchers.equalTo("testFile") ); } finally { container.stop(); } } /** * RtPull should be able to perform a merge.
132133134135136137138139140141142
MatcherAssert.assertThat( query.body(), Matchers.equalTo("{\"commit_message\":\"Test commit.\"}") ); } finally { container.stop(); } } /** * RtPull should be able to compare different instances.
138139140141142143144145146147148
MatcherAssert.assertThat( query.body(), Matchers.equalTo("{\"patch\":\"test\"}") ); } finally { container.stop(); } } /** * RtIssue should be able to compare different instances.
7778798081828384858687
); MatcherAssert.assertThat( iterator.next().toString(), Matchers.containsString("Mark") ); container.stop(); } /** * RtPagination can throw if there is no more elements in pagination. *
106107108109110111112113114115116
MatcherAssert.assertThat( iterator.next(), Matchers.notNullValue() ); } finally { container.stop(); } } /** * Create and return MkAnswer.Simple to test.
129130131132133134135136137138139
); MatcherAssert.assertThat( release.json().getString("tag_name"), Matchers.equalTo(tag) ); container.stop(); } /** * RtReleases can delete a release. * @throws Exception If some problem inside