src/test/java/com/jcabi/github/mock/MkReferencesTest.java
/**
     * MkReferences can remove a Reference.
     * @throws Exception - If something goes wrong.
     */
MkReferences can remove a Reference.
@throws Exception - If something goes wrong.
MkReferences can remove a Reference . @throws Exception - If something goes wrong .
@Test
    public void removesReference() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/testbr", "qweqwe22");
        refs.create("refs/tags/t2", "111teee");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
        );
        refs.remove("refs/tags/t2");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
@ Test public void removesReference ( ) throws Exception { final Repo owner = this . repo ( ) ; final References refs = owner . git ( ) . references ( ) ; refs . create ( "refs/heads/testbr" , "qweqwe22" ) ; refs . create ( "refs/tags/t2" , "111teee" ) ; MatcherAssert . assertThat ( refs . iterate ( ) , Matchers . < Reference > iterableWithSize ( 2 ) ) ; refs . remove ( "refs/tags/t2" ) ; MatcherAssert . assertThat ( refs . iterate ( ) , Matchers . < Reference > iterableWithSize ( 1 ) ) ; }
MkReferences can remove a Reference.
MkReferences can remove a Reference .