Package com.jcabi.github

Examples of com.jcabi.github.References.iterate()


        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)
        );
    }

    /**
 
View Full Code Here


        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("heads"),
            Matchers.<Reference>iterableWithSize(1)
        );
        MatcherAssert.assertThat(
            refs.iterate("tags"),
            Matchers.<Reference>iterableWithSize(1)
View Full Code Here

        MatcherAssert.assertThat(
            refs.iterate("heads"),
            Matchers.<Reference>iterableWithSize(1)
        );
        MatcherAssert.assertThat(
            refs.iterate("tags"),
            Matchers.<Reference>iterableWithSize(1)
        );
    }

    /**
 
View Full Code Here

        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(),
View Full Code Here

            refs.iterate(),
            Matchers.<Reference>iterableWithSize(2)
        );
        refs.remove("refs/tags/t2");
        MatcherAssert.assertThat(
            refs.iterate(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }
    /**
     * Repo for testing.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.