src/test/java/com/jcabi/github/mock/MkReferencesTest.java
/**
     * MkReferences can iterate over references.
     * @throws Exception - If something goes wrong.
     */
MkReferences can iterate over references.
@throws Exception - If something goes wrong.
MkReferences can iterate over references . @throws Exception - If something goes wrong .
@Test
    public void iteratesReferences() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/br", "qweqwe");
        refs.create("refs/tags/t1", "111t222");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
        );
    }
@ Test public void iteratesReferences ( ) throws Exception { final Repo owner = this . repo ( ) ; final References refs = owner . git ( ) . references ( ) ; refs . create ( "refs/heads/br" , "qweqwe" ) ; refs . create ( "refs/tags/t1" , "111t222" ) ; MatcherAssert . assertThat ( refs . iterate ( ) , Matchers . < Reference > iterableWithSize ( 2 ) ) ; }
MkReferences can iterate over references.
MkReferences can iterate over references .