102103104105106107108109110111112
); MatcherAssert.assertThat( hooks.iterate(), Matchers.<Hook>iterableWithSize(2) ); container.stop(); } /** * RtHooks can fetch single hook. * @throws Exception if some problem inside
130131132133134135136137138139140
final Hook hook = hooks.get(1); MatcherAssert.assertThat( new Hook.Smart(hook).name(), Matchers.equalTo(name) ); container.stop(); } /** * RtHooks can create a hook. *
164165166167168169170171172173174
MatcherAssert.assertThat( new Hook.Smart(hook).name(), Matchers.equalTo(name) ); } finally { container.stop(); } } /** * RtHooks can delete a hook.
194195196197198199200201202203204
MatcherAssert.assertThat( query.body(), Matchers.isEmptyString() ); } finally { container.stop(); } } /** * Create and return JsonObject to test.
7071727374757677787980
); MatcherAssert.assertThat( users.iterate(identifier), Matchers.<User>iterableWithSize(2) ); container.stop(); } /** * RtUsers can get a single user. *
9596979899100101102103104105
); MatcherAssert.assertThat( users.get(login).login(), Matchers.equalTo(login) ); container.stop(); } /** * RtUsers can get a current user. *
120121122123124125126127128129130
); MatcherAssert.assertThat( users.self().login(), Matchers.equalTo(login) ); container.stop(); } /** * Create and return JsonObject to test. * @param login Username to login
7374757677787980818283
MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.POST) ); } finally { container.stop(); } } /** * RtReferences should be able to iterate over References.
99100101102103104105106107108109
MatcherAssert.assertThat( refs.iterate(), Matchers.notNullValue() ); } finally { container.stop(); } } /** * RtReferences should be able to remove a Reference.
123124125126127128129130131132133
MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } } /** * RtReferences should be able to iterate over tags.