Package com.atlassian.jira.rest.client.domain

Examples of com.atlassian.jira.rest.client.domain.CimProject


        .getIssueClient()
        .getCreateIssueMetadata(null, pm);

    assertEquals(4, Iterables.size(metadataProjects));

    final CimProject project = Iterables.find(metadataProjects, new Predicate<CimProject>() {
      @Override
      public boolean apply(CimProject input) {
        return "ANONEDIT".equals(input.getKey());
      }
    });

    assertEquals(project.getName(), "Anonymous Editable Project");
    assertEquals(5, Iterables.size(project.getIssueTypes()));

    for (CimIssueType issueType : project.getIssueTypes()) {
      assertTrue(issueType.getFields().isEmpty());
    }
  }
View Full Code Here


            pm
        );

    assertEquals(2, Iterables.size(metadataProjects));

    final CimProject project = Iterables.find(metadataProjects, new Predicate<CimProject>() {
      @Override
      public boolean apply(CimProject input) {
        return "TST".equals(input.getKey());
      }
    });

    assertEquals(project.getName(), "Test Project");
    assertEquals(5, Iterables.size(project.getIssueTypes()));

    for (CimIssueType issueType : project.getIssueTypes()) {
      assertFalse(issueType.getFields().isEmpty());
    }
  }
View Full Code Here

    final JSONArray issueTypesArray = json.optJSONArray("issuetypes");
    final Iterable<CimIssueType> issueTypes = (issueTypesArray != null) ?
        issueTypesParser.parse(issueTypesArray) : Collections.<CimIssueType>emptyList();

    final Map<String, URI> avatarUris = JsonParseUtil.getAvatarUris(json.getJSONObject("avatarUrls"));
    return new CimProject(basicProject.getSelf(), basicProject.getKey(),
        basicProject.getName(), avatarUris, issueTypes);
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.domain.CimProject

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.