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

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


    });
  }

  @Test
  public void testGetProject() throws URISyntaxException {
    final Project project = client.getProjectClient().getProject("TST", pm);
    assertEquals("TST", project.getKey());
    assertEquals(IntegrationTestUtil.USER_ADMIN_LATEST, project.getLead());
    assertEquals(2, Iterables.size(project.getVersions()));
    assertEquals(2, Iterables.size(project.getComponents()));
    final Iterator<IssueType> issueTypesIterator = project.getIssueTypes().iterator();
    if (isJira4x4OrNewer()) {
      assertTrue(issueTypesIterator.hasNext());
      final IssueType it = issueTypesIterator.next();
      if (isJira5xOrNewer()) {
        assertEquals(Long.valueOf(1), it.getId());
View Full Code Here


    }
  }

  @Test
  public void testGetRestrictedProject() {
    final Project project = client.getProjectClient().getProject("RST", pm);
    assertEquals("RST", project.getKey());

    setClient(TestConstants.USER1_USERNAME, TestConstants.USER1_PASSWORD);
    client.getProjectClient().getProject("TST", pm);
    // @todo when JRADEV-3519 - instead of NOT_FOUND, FORBIDDEN code should be returned by JIRA
    final String message = getCannotViewProjectErrorMessage("RST");
View Full Code Here

      public void run() {
        client.getProjectClient().getProject("TST", pm);
      }
    });

    final Project project = client.getProjectClient().getProject("ANNON", pm);
    assertEquals("ANNON", project.getKey());

  }
View Full Code Here

TOP

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

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.