Package com.jcabi.github

Examples of com.jcabi.github.Milestones.create()


     * @throws Exception - if something goes wrong.
     */
    @Test
    public void createsMilestone() throws Exception {
        final Milestones milestones = this.repo().milestones();
        final Milestone milestone = milestones.create("test milestone");
        MatcherAssert.assertThat(milestone, Matchers.notNullValue());
        MatcherAssert.assertThat(
            milestones.create("another milestone"),
            Matchers.notNullValue()
        );
View Full Code Here


    public void createsMilestone() throws Exception {
        final Milestones milestones = this.repo().milestones();
        final Milestone milestone = milestones.create("test milestone");
        MatcherAssert.assertThat(milestone, Matchers.notNullValue());
        MatcherAssert.assertThat(
            milestones.create("another milestone"),
            Matchers.notNullValue()
        );
    }

    /**
 
View Full Code Here

     * @throws Exception - if something goes wrong.
     */
    @Test
    public void getsMilestone() throws Exception {
        final Milestones milestones = this.repo().milestones();
        final Milestone created = milestones.create("test");
        MatcherAssert.assertThat(
            milestones.get(created.number()),
            Matchers.notNullValue()
        );
    }
View Full Code Here

     * @throws Exception - if something goes wrong.
     */
    @Test
    public void removesMilestone() throws Exception {
        final Milestones milestones = this.repo().milestones();
        final Milestone created = milestones.create("testTitle");
        MatcherAssert.assertThat(
            milestones.iterate(new ArrayMap<String, String>()),
            Matchers.<Milestone>iterableWithSize(1)
        );
        milestones.remove(created.number());
View Full Code Here

     * @throws Exception - if something goes wrong.
     */
    @Test
    public void iteratesMilestones() throws Exception {
        final Milestones milestones = this.repo().milestones();
        milestones.create("testMilestone");
        MatcherAssert.assertThat(
            milestones.iterate(new ArrayMap<String, String>()),
            Matchers.<Milestone>iterableWithSize(1)
        );
    }
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.