src/test/java/com/jcabi/github/mock/MkMilestonesTest.java
/**
     * This tests that MkMilestones can remove a certain MkMilestone, by number.
     * @throws Exception - if something goes wrong.
     */
This tests that MkMilestones can remove a certain MkMilestone, by number.
@throws Exception - if something goes wrong.
This tests that MkMilestones can remove a certain MkMilestone by number . @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());
        MatcherAssert.assertThat(
            milestones.iterate(new ArrayMap<String, String>()),
            Matchers.<Milestone>iterableWithSize(0)
        );
    }
@ 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 ( ) ) ; MatcherAssert . assertThat ( milestones . iterate ( new ArrayMap < String , String > ( ) ) , Matchers . < Milestone > iterableWithSize ( 0 ) ) ; }
This tests that MkMilestones can remove a certain MkMilestone, by number.
This tests that MkMilestones can remove a certain MkMilestone by number .