src/test/java/com/jcabi/github/mock/MkHooksTest.java
/**
     * MkHooks can delete a single hook by ID.
     *
     * @throws Exception if something goes wrong.
     */
MkHooks can delete a single hook by ID.
@throws Exception if something goes wrong.
MkHooks can delete a single hook by ID . @throws Exception if something goes wrong .
@Test
    public void canDeleteSingleHook() throws Exception {
        final Hooks hooks = MkHooksTest.repo().hooks();
        final Hook hook = hooks.create(
            "geocommit", Collections.<String, String>emptyMap()
        );
        MatcherAssert.assertThat(
            hooks.iterate(),
            Matchers.<Hook>iterableWithSize(1)
        );
        hooks.remove(hook.number());
        MatcherAssert.assertThat(
            hooks.iterate(),
            Matchers.emptyIterable()
        );
    }
@ Test public void canDeleteSingleHook ( ) throws Exception { final Hooks hooks = MkHooksTest . repo ( ) . hooks ( ) ; final Hook hook = hooks . create ( "geocommit" , Collections . < String , String > emptyMap ( ) ) ; MatcherAssert . assertThat ( hooks . iterate ( ) , Matchers . < Hook > iterableWithSize ( 1 ) ) ; hooks . remove ( hook . number ( ) ) ; MatcherAssert . assertThat ( hooks . iterate ( ) , Matchers . emptyIterable ( ) ) ; }
MkHooks can delete a single hook by ID.
MkHooks can delete a single hook by ID .
// @checkstyle MultipleStringLiterals (1 line)