src/test/java/com/jcabi/github/RtHooksITCase.java
/**
     * RtHooks can iterate hooks.
     * @throws Exception If some problem inside
     */
RtHooks can iterate hooks.
@throws Exception If some problem inside
RtHooks can iterate hooks . @throws Exception If some problem inside
@Test
    public void canFetchAllHooks() throws Exception {
        final Repos repos = RtHooksITCase.repos();
        final Repo repo = this.rule.repo(repos);
        try {
            RtHooksITCase.createHook(repo);
            MatcherAssert.assertThat(
                repo.hooks().iterate(), Matchers.<Hook>iterableWithSize(1)
            );
        } finally {
            repos.remove(repo.coordinates());
        }
    }
@ Test public void canFetchAllHooks ( ) throws Exception { final Repos repos = RtHooksITCase . repos ( ) ; final Repo repo = this . rule . repo ( repos ) ; try { RtHooksITCase . createHook ( repo ) ; MatcherAssert . assertThat ( repo . hooks ( ) . iterate ( ) , Matchers . < Hook > iterableWithSize ( 1 ) ) ; } finally { repos . remove ( repo . coordinates ( ) ) ; } }
RtHooks can iterate hooks.
RtHooks can iterate hooks .