7778798081828384858687
); MatcherAssert.assertThat( new Label.Smart(label).color(), Matchers.equalTo(color) ); container.stop(); } /** * RtLabels can get a single label. *
104105106107108109110111112113114
final Label label = issues.get(name); MatcherAssert.assertThat( new Label.Smart(label).color(), Matchers.equalTo(color) ); container.stop(); } /** * RtLabels can delete a label. * @throws Exception if some problem inside
130131132133134135136137138139140
); MatcherAssert.assertThat( query.body(), Matchers.isEmptyOrNullString() ); container.stop(); } /** * RtLabels can iterate labels. * @throws Exception if there is any error
156157158159160161162163164165166
); MatcherAssert.assertThat( labels.iterate(), Matchers.<Label>iterableWithSize(2) ); container.stop(); } /** * Create and return JsonObject to test. * @param name The name of the label
919293949596979899100101
Matchers.allOf( Matchers.containsString(judy), Matchers.containsString(jessy) ) ); container.stop(); } /** * RtValuePagination can throw if there is no more elements in pagination. * @throws Exception if there is any problem
127128129130131132133134135136137
MatcherAssert.assertThat( iterator.next(), Matchers.notNullValue() ); } finally { container.stop(); } } /** * Create and return MkAnswer.Simple to test.
7576777879808182838485
MatcherAssert.assertThat( container.take().body(), Matchers.startsWith("{\"files\":{\"test\":{\"content\":") ); } finally { container.stop(); } } /** * RtGists can retrieve a specific Gist.
99100101102103104105106107108109
MatcherAssert.assertThat( gists.get("gist"), Matchers.notNullValue() ); } finally { container.stop(); } } /** * RtGists can iterate through its contents.
126127128129130131132133134135136
MatcherAssert.assertThat( gists.iterate().iterator().next(), Matchers.notNullValue() ); } finally { container.stop(); } } /** * RtGists can remove a gist by name. * @throws Exception - if something goes wrong.
154155156157158159160161162
MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } } }