Пример #1
0
  public void addTestIssues() {
    Issue iss = null;

    // noobs
    iss = issueDao.postIssue(this, "thiz cr4p don't work, n00bz!!1");
    iss.setDescription("go home, u noobz ..#");

    // eclipse integration
    iss = issueDao.postIssue(this, "I want eclipse integration");
    iss.setDescription(
        "I would be really nice if eclipse commits would be represented in Kunagi! Thank you!");

    // link bug
    iss = issueDao.postIssue(this, "Bug: Links don't work");
    iss.setDescription("When I try to post links to other pages, I get links to the Wiki. WTF?");

    // date crash
    iss = issueDao.postIssue(this, "Crash when using Dates after 2012");
    iss.setDescription(
        "The program crashes whenever I enter dates after 2012. Can't figure out what the problem is though.");
    iss.setAcceptDate(Date.beforeDays(2));
    iss.setUrgent(true);
    iss.setSeverity(scrum.client.issues.Issue.SEVERE);

    // gui bug
    iss = issueDao.postIssue(this, "GUI inconsistency between PB and SB");
    iss.setDescription(
        "The order of Qualities and Tests is different between widgets in the PB and SB. It should be the same.");
    iss.setAcceptDate(Date.beforeDays(35));
    iss.setUrgent(true);
    iss.setSeverity(scrum.client.issues.Issue.MINOR);

    // navi display bug
    iss = issueDao.postIssue(this, "navigation displays wrong current view");
    iss.setDescription(
        "When I open the Whiteboard, \"Sprint Backlog\" is selected in the navigation. Same for other jumps.");
    iss.setAcceptDate(Date.today());
    iss.setUrgent(true);
    iss.setSeverity(scrum.client.issues.Issue.MINOR);
    iss.setIssuerName("Witek");
    iss.setIssuerEmail("*****@*****.**");

    // terrific pb suggestion
    iss = issueDao.postIssue(this, "Product Backlog should be terrific, not amazing");
    iss.setDescription(
        "56% of users want a terrific PB, not an amazing one. We should change that in one of the upcoming releases.");
    iss.setAcceptDate(Date.today());

    // flattr
    iss = issueDao.postIssue(this, "Add a flattr-button");
    iss.setDescription("See [http://flattr.com].");
    iss.setCloseDate(Date.beforeDays(1));

    // thank you
    iss = issueDao.postIssue(this, "I like this software, thank you!");
    iss.setDescription("I'm using Kunagi for my own project now. Thanks for the great work.");
    iss.setCloseDate(Date.today());
  }