9293949596979899100101102
MatcherAssert.assertThat( container.take().method(), Matchers.equalTo(Request.POST) ); } finally { container.stop(); } } /** * This method returns a Repo for testing.
7374757677787980818283
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith("/repos/test/repo/hooks/1") ); } finally { container.stop(); } } /** * Create and return repo for testing.
163164165166167168169170171172173
MatcherAssert.assertThat( search.codes("test4", "joined", Search.Order.DESC), Matchers.<Content>iterableWithSize(2) ); } finally { container.stop(); } } /** * RtSearch can read non-unicode.
292293294295296297298299300301302
MatcherAssert.assertThat( query.uri().toString(), Matchers.endsWith("/repos/test/contents/contents/to/remove") ); } finally { container.stop(); } } /** * RtContents can update files into the repository.
343344345346347348349350351352353
MatcherAssert.assertThat( query.body(), Matchers.equalTo(json.toString()) ); } finally { container.stop(); } } /** * RtContents can iterate through a directory's contents.
377378379380381382383384385386387
MatcherAssert.assertThat( contents.iterate("dir", "branch2"), Matchers.<Content>iterableWithSize(2) ); } finally { container.stop(); } } /** * Create and return repo for testing.
7273747576777879808182
); MatcherAssert.assertThat( gitignores.iterate(), Matchers.<String>iterableWithSize(2) ); container.stop(); } /** * RtGitignores can get raw template by name. * @throws Exception if there is any error
7677787980818283848586
); MatcherAssert.assertThat( users.iterate(), Matchers.<User>iterableWithSize(2) ); container.stop(); } /** * User can be added to a repo as a collaborator. * @throws Exception if any error occurs.
106107108109110111112113114115116
MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.PUT) ); } finally { container.stop(); } } /** * User can be checked for being a collaborator.
135136137138139140141142143144145
MatcherAssert.assertThat( users.isCollaborator("octocat2"), Matchers.equalTo(true) ); } finally { container.stop(); } } /** * User can be removed from a list of collaborators.