src/test/java/com/jcabi/github/mock/MkHooksTest.java
/**
     * MkHooks can fetch non empty list of hooks.
     * @throws Exception If some problem inside
     */
MkHooks can fetch non empty list of hooks.
@throws Exception If some problem inside
MkHooks can fetch non empty list of hooks . @throws Exception If some problem inside
@Test
    public void canFetchNonEmptyListOfHooks() throws Exception {
        final Hooks hooks = MkHooksTest.repo().hooks();
        hooks.create(
            "geocommit", Collections.<String, String>emptyMap()
        );
        hooks.create(
            "web", Collections.<String, String>emptyMap()
        );
        MatcherAssert.assertThat(
            hooks.iterate(),
            Matchers.<Hook>iterableWithSize(2)
        );
    }
@ Test public void canFetchNonEmptyListOfHooks ( ) throws Exception { final Hooks hooks = MkHooksTest . repo ( ) . hooks ( ) ; hooks . create ( "geocommit" , Collections . < String , String > emptyMap ( ) ) ; hooks . create ( "web" , Collections . < String , String > emptyMap ( ) ) ; MatcherAssert . assertThat ( hooks . iterate ( ) , Matchers . < Hook > iterableWithSize ( 2 ) ) ; }
MkHooks can fetch non empty list of hooks.
MkHooks can fetch non empty list of hooks .
// @checkstyle MultipleStringLiterals (1 line)