src/test/java/com/jcabi/github/RtHooksITCase.java
/**
     * RtHooks can fetch a single hook.
     *
     * @throws Exception If some problem inside.
     */
RtHooks can fetch a single hook.
@throws Exception If some problem inside.
RtHooks can fetch a single hook . @throws Exception If some problem inside .
@Test
    public void canFetchSingleHook() throws Exception {
        final Repos repos = RtHooksITCase.repos();
        final Repo repo = this.rule.repo(repos);
        try {
            final int number = RtHooksITCase.createHook(repo).number();
            MatcherAssert.assertThat(
                repo.hooks().get(number).json().getInt("id"),
                Matchers.equalTo(number)
            );
        } finally {
            repos.remove(repo.coordinates());
        }
    }
@ Test public void canFetchSingleHook ( ) throws Exception { final Repos repos = RtHooksITCase . repos ( ) ; final Repo repo = this . rule . repo ( repos ) ; try { final int number = RtHooksITCase . createHook ( repo ) . number ( ) ; MatcherAssert . assertThat ( repo . hooks ( ) . get ( number ) . json ( ) . getInt ( "id" ) , Matchers . equalTo ( number ) ) ; } finally { repos . remove ( repo . coordinates ( ) ) ; } }
RtHooks can fetch a single hook.
RtHooks can fetch a single hook .