src/test/java/com/jcabi/github/RtHooksITCase.java
/**
     * RtHooks can remove a hook by ID.
     *
     * @throws Exception If something goes wrong.
     */
RtHooks can remove a hook by ID.
@throws Exception If something goes wrong.
RtHooks can remove a hook by ID . @throws Exception If something goes wrong .
@Test
    public void canRemoveHook() throws Exception {
        final Repos repos = RtHooksITCase.repos();
        final Repo repo = this.rule.repo(repos);
        try {
            final Hook hook = RtHooksITCase.createHook(repo);
            repo.hooks().remove(hook.number());
            MatcherAssert.assertThat(
                repo.hooks().iterate(), Matchers.not(Matchers.hasItem(hook))
            );
        } finally {
            repos.remove(repo.coordinates());
        }
    }
@ Test public void canRemoveHook ( ) throws Exception { final Repos repos = RtHooksITCase . repos ( ) ; final Repo repo = this . rule . repo ( repos ) ; try { final Hook hook = RtHooksITCase . createHook ( repo ) ; repo . hooks ( ) . remove ( hook . number ( ) ) ; MatcherAssert . assertThat ( repo . hooks ( ) . iterate ( ) , Matchers . not ( Matchers . hasItem ( hook ) ) ) ; } finally { repos . remove ( repo . coordinates ( ) ) ; } }
RtHooks can remove a hook by ID.
RtHooks can remove a hook by ID .