Package com.taskadapter.redmineapi.bean

Examples of com.taskadapter.redmineapi.bean.Version


    @Test
    public void issueFixVersionIsSet() throws Exception {

        String existingProjectKey = "test";
        Issue toCreate = IssueHelper.generateRandomIssue();
        Version v = VersionFactory.create(1);
        String versionName = "1.0";
        v.setName("1.0");
        v.setProject(mgr.getProjectManager().getProjectByKey(projectKey));
        v = mgr.getProjectManager().createVersion(v);
        toCreate.setTargetVersion(v);
        Issue createdIssue = issueManager.createIssue(existingProjectKey, toCreate);

        assertNotNull(createdIssue.getTargetVersion());
View Full Code Here


  }

  @SuppressWarnings("unused")
  private static void getVersion(ProjectManager mgr) throws RedmineException {
    // see Redmine bug http://www.redmine.org/issues/10241
    Version version = mgr.getVersionById(294);
    System.out.println(version);
  }
View Full Code Here

  @SuppressWarnings("unused")
  private static void tryCreateIssue(IssueManager issueManager)
      throws RedmineException {
    Issue issue = new Issue();
    issue.setSubject("test123");
    final Version ver = VersionFactory.create(512);
    issue.setTargetVersion(ver);
    final IssueCategory cat = IssueCategoryFactory.create(673);
    issue.setCategory(cat);
    issueManager.createIssue(projectKey, issue);
  }
View Full Code Here

TOP

Related Classes of com.taskadapter.redmineapi.bean.Version

Copyright © 2018 www.massapicom. 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.