Class TestProjectResource

java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.TestProjectResource

public class TestProjectResource extends BaseJiraFuncTest
Func test for ProjectResource.
Since:
v4.2
  • Field Details

    • issueTypeUrls

      public IssueTypeUrls issueTypeUrls
    • PROJECT_LIST_TYPE

      public static final jakarta.ws.rs.core.GenericType<List<com.atlassian.jira.testkit.client.restclient.Project>> PROJECT_LIST_TYPE
    • LARGE_PROJECT_KEY

      public static final String LARGE_PROJECT_KEY
      See Also:
  • Constructor Details

    • TestProjectResource

      public TestProjectResource()
  • Method Details

    • setUpTest

      public void setUpTest()
    • tearDownTest

      public void tearDownTest()
    • testCorrectInfoIsReturnedWhenUserHasAccessToProject

      public void testCorrectInfoIsReturnedWhenUserHasAccessToProject() throws Exception
      Throws:
      Exception
    • testUserCannotAccessProjectByKeyIfTheyDoNotHavePermissions

      public void testUserCannotAccessProjectByKeyIfTheyDoNotHavePermissions() throws Exception
      Throws:
      Exception
    • testUserCannotAccessProjectByIdIfTheyDoNotHavePermissions

      public void testUserCannotAccessProjectByIdIfTheyDoNotHavePermissions() throws Exception
      Throws:
      Exception
    • testAllProjectsUserHasAccessToAreReturnedWhenAskingForAllProjects

      public void testAllProjectsUserHasAccessToAreReturnedWhenAskingForAllProjects() throws Exception
      Throws:
      Exception
    • testEmptyListIsReturnedWhenUserDoesNotHaveAnyRecentProjects

      public void testEmptyListIsReturnedWhenUserDoesNotHaveAnyRecentProjects()
    • testNotFoundResponseIsReturnedWhenAskingForNonExistingProject

      public void testNotFoundResponseIsReturnedWhenAskingForNonExistingProject() throws Exception
      Throws:
      Exception
    • testErrorIsReturnedWhenTryingToGetNegativeNumberOfRecentProjects

      public void testErrorIsReturnedWhenTryingToGetNegativeNumberOfRecentProjects()
    • testViewProjectVersions

      public void testViewProjectVersions() throws Exception
      Throws:
      Exception
    • testViewProjectVersionsAnonymous

      public void testViewProjectVersionsAnonymous() throws Exception
      Throws:
      Exception
    • testViewProjectComponents

      public void testViewProjectComponents() throws Exception
      Throws:
      Exception
    • testViewProjectComponentsAnonymous

      public void testViewProjectComponentsAnonymous() throws Exception
      Throws:
      Exception
    • testAnonymousUserGetsAppropriateErrorWhenTryingToCreateProject

      public void testAnonymousUserGetsAppropriateErrorWhenTryingToCreateProject()
    • testNonAdminUserGetsAppropriateErrorWhenTryingToCreateProject

      public void testNonAdminUserGetsAppropriateErrorWhenTryingToCreateProject()
    • testAdminCanCreateSimpleProject

      public void testAdminCanCreateSimpleProject()
    • testAdminCanCreateProjectUsingOnlyRequiredFields

      public void testAdminCanCreateProjectUsingOnlyRequiredFields()
    • testWhenCreatingProjectWithNonExistingAvatarIdInvalidRequestResponseIsReturned

      public void testWhenCreatingProjectWithNonExistingAvatarIdInvalidRequestResponseIsReturned()
    • testCreatingProjectWithTheNameThatAlreadyExistsFails

      public void testCreatingProjectWithTheNameThatAlreadyExistsFails()
    • testCreatingProjectWithTheKeyThatAlreadyExistsFails

      public void testCreatingProjectWithTheKeyThatAlreadyExistsFails()
    • testCreatingProjectWithNonExistingLeadFails

      public void testCreatingProjectWithNonExistingLeadFails()
    • testCreatingProjectWithNonExistingSchemesFails

      public void testCreatingProjectWithNonExistingSchemesFails()
    • testCreatingProjectWithExistingSchemesSucceeds

      public void testCreatingProjectWithExistingSchemesSucceeds()
    • testCreatingProjectWithNonExistentCategoryFails

      public void testCreatingProjectWithNonExistentCategoryFails()
    • testProjectCanBeCreatedWithExistingCategory

      public void testProjectCanBeCreatedWithExistingCategory()
    • testEachFieldCanBeUpdatedSeparately

      public void testEachFieldCanBeUpdatedSeparately()
    • testAllFieldsCanBeUpdatedAtOnce

      public void testAllFieldsCanBeUpdatedAtOnce()
    • testAnonymousGetsNotLoggedInResponseWhenUpdatingProject

      public void testAnonymousGetsNotLoggedInResponseWhenUpdatingProject()
    • testNonAdminUserGetsForbiddenResponseWhenUpdatingProject

      public void testNonAdminUserGetsForbiddenResponseWhenUpdatingProject()
    • testBadRequestResponseWhenUpdateDataIsNotRight

      public void testBadRequestResponseWhenUpdateDataIsNotRight()
    • test404WhenTryingToUpdateProjectThatDoesNotExist

      public void test404WhenTryingToUpdateProjectThatDoesNotExist()
    • shouldCreateProjectWithWorkflowSchemeAssignedWhenDefaultScheme

      public void shouldCreateProjectWithWorkflowSchemeAssignedWhenDefaultScheme()
    • shouldCreateProjectWithWorkflowSchemeAssignedWhenCommonDefaultSchemeForManyProjectAndDontCreateRubbishWorkflows

      public void shouldCreateProjectWithWorkflowSchemeAssignedWhenCommonDefaultSchemeForManyProjectAndDontCreateRubbishWorkflows()
    • shouldCreateManyProjectsWithCommonCustomWorkflowSchemeAndShouldNotCreateAnyOthersWorkflowSchemesAndWorkflows

      public void shouldCreateManyProjectsWithCommonCustomWorkflowSchemeAndShouldNotCreateAnyOthersWorkflowSchemesAndWorkflows()
    • shouldCreateProjectWithCustomWorkflowScheme

      public void shouldCreateProjectWithCustomWorkflowScheme()
    • shouldCreateProjectWithCustomDraftWorkflowScheme

      public void shouldCreateProjectWithCustomDraftWorkflowScheme()
    • shouldNotCreateProjectWhenWorkflowSchemeDoesntExist

      public void shouldNotCreateProjectWhenWorkflowSchemeDoesntExist()
    • shouldCreateProjectWhenWorkflowSchemeActive

      public void shouldCreateProjectWhenWorkflowSchemeActive()
    • shouldCreateProjectWhenWorkflowSchemeIsDraft

      public void shouldCreateProjectWhenWorkflowSchemeIsDraft()
    • shouldNotCreateProjectWhenProjectTypeKeyNotExist

      public void shouldNotCreateProjectWhenProjectTypeKeyNotExist()
    • shouldNotCreateProjectWhenProjectTypeTemplateNotExist

      public void shouldNotCreateProjectWhenProjectTypeTemplateNotExist()
    • shouldNotCreateProjectWhenUnavailableProjectTypeRequested

      public void shouldNotCreateProjectWhenUnavailableProjectTypeRequested()
    • shouldNotCreateProjectWhenLoggedNotAsAdmin

      public void shouldNotCreateProjectWhenLoggedNotAsAdmin()
    • shouldNotCreateSecondTheSameRequestForProjectCreation

      public void shouldNotCreateSecondTheSameRequestForProjectCreation()
    • testProjectCreationSetsCreatedAtAndCreatedBy

      public void testProjectCreationSetsCreatedAtAndCreatedBy()
    • testProjectCreationSetsLastUpdatedAtAndLastUpdatedBy

      public void testProjectCreationSetsLastUpdatedAtAndLastUpdatedBy()
    • testProjectLeadUpdateSetsLastUpdatedAtAndLastUpdatedBy

      public void testProjectLeadUpdateSetsLastUpdatedAtAndLastUpdatedBy()
    • testDeletingProjectAsAnonymousFailsWith401

      public void testDeletingProjectAsAnonymousFailsWith401()
    • testDeletingNonExistingProjectAsAnonymousFailsWith401

      public void testDeletingNonExistingProjectAsAnonymousFailsWith401()
    • testDeletingProjectAsNonAdminFailsWith403

      public void testDeletingProjectAsNonAdminFailsWith403()
    • testDeletingNonExistingProjectAsNonAdminFailsWith404

      public void testDeletingNonExistingProjectAsNonAdminFailsWith404()
    • testDeletingProjectThatUserCannotSeeFailsWith404

      public void testDeletingProjectThatUserCannotSeeFailsWith404()
    • testDeletingProjectWithNonsenseKeyFailsWith404

      public void testDeletingProjectWithNonsenseKeyFailsWith404()
    • testDeletingExistingProjectByKeyAsAdminSucceedsWithNoContentResponse

      public void testDeletingExistingProjectByKeyAsAdminSucceedsWithNoContentResponse()
    • testDeletingExistingProjectByIdAsAdminSucceedsWithNoContentResponse

      public void testDeletingExistingProjectByIdAsAdminSucceedsWithNoContentResponse()
    • testGetAvatars_normalMode

      public void testGetAvatars_normalMode() throws Exception
      Throws:
      Exception
    • testViewProjectWithEditedKey

      public void testViewProjectWithEditedKey() throws Exception
      Throws:
      Exception
    • testViewProjectsExpandDescription

      public void testViewProjectsExpandDescription() throws Exception
      Throws:
      Exception
    • testViewProjectsExpandLead

      public void testViewProjectsExpandLead() throws Exception
      Throws:
      Exception
    • testViewProjectsExpandDescriptionAndLead

      public void testViewProjectsExpandDescriptionAndLead() throws Exception
      Throws:
      Exception
    • testViewProjectsExpandCreatedByAndCreatedAt

      public void testViewProjectsExpandCreatedByAndCreatedAt()
    • testViewProjectsExpandLastUpdatedByAndLastUpdatedAt

      public void testViewProjectsExpandLastUpdatedByAndLastUpdatedAt()
    • testChangeLeadOfProjectWithTooLongKey

      public void testChangeLeadOfProjectWithTooLongKey()
    • assertResponseContainsAnyOfErrorMessages

      protected final void assertResponseContainsAnyOfErrorMessages(jakarta.ws.rs.core.Response response, String... errorMessageRegexp)
    • createHttpClient

      protected final com.atlassian.jira.testkit.client.JiraHttpClient createHttpClient()