src/test/java/com/jcabi/github/mock/MkHooksTest.java
/**
     * MkHooks can create a hook.
     * @throws Exception If some problem inside
     */
MkHooks can create a hook.
@throws Exception If some problem inside
MkHooks can create a hook . @throws Exception If some problem inside
@Test
    public void canCreateHook() throws Exception {
        final Hooks hooks = MkHooksTest.repo().hooks();
        final Hook hook = hooks.create(
            "geocommit", Collections.<String, String>emptyMap()
        );
        MatcherAssert.assertThat(
            hooks.iterate().iterator().next().number(),
            Matchers.equalTo(hook.number())
        );
    }
@ Test public void canCreateHook ( ) throws Exception { final Hooks hooks = MkHooksTest . repo ( ) . hooks ( ) ; final Hook hook = hooks . create ( "geocommit" , Collections . < String , String > emptyMap ( ) ) ; MatcherAssert . assertThat ( hooks . iterate ( ) . iterator ( ) . next ( ) . number ( ) , Matchers . equalTo ( hook . number ( ) ) ) ; }
MkHooks can create a hook.
MkHooks can create a hook .