public class TestProjectResource extends BaseJiraFuncTest
Modifier and Type | Field and Description |
---|---|
IssueTypeUrls |
issueTypeUrls |
static String |
LARGE_PROJECT_KEY |
static com.sun.jersey.api.client.GenericType<List<com.atlassian.jira.testkit.client.restclient.Project>> |
PROJECT_LIST_TYPE |
assertions, backdoor, environmentData, initClass, navigation, tester, testRule
Constructor and Description |
---|
TestProjectResource() |
getAssertions, getBackdoor, getEnvironmentData, getTester
public IssueTypeUrls issueTypeUrls
public static final com.sun.jersey.api.client.GenericType<List<com.atlassian.jira.testkit.client.restclient.Project>> PROJECT_LIST_TYPE
public static final String LARGE_PROJECT_KEY
public void testCorrectInfoIsReturnedWhenUserHasAccessToProject() throws Exception
Exception
public void testUserCannotAccessProjectByKeyIfTheyDoNotHavePermissions() throws Exception
Exception
public void testUserCannotAccessProjectByIdIfTheyDoNotHavePermissions() throws Exception
Exception
public void testAllProjectsUserHasAccessToAreReturnedWhenAskingForAllProjects() throws Exception
Exception
public void testEmptyListIsReturnedWhenUserDoesNotHaveAnyRecentProjects()
public void testNotFoundResponseIsReturnedWhenAskingForNonExistingProject() throws Exception
Exception
public void testErrorIsReturnedWhenTryingToGetNegativeNumberOfRecentProjects()
public void testViewProjectVersionsAnonymous() throws Exception
Exception
public void testViewProjectComponents() throws Exception
Exception
public void testViewProjectComponentsAnonymous() throws Exception
Exception
public void testAnonymousUserGetsAppropriateErrorWhenTryingToCreateProject()
public void testNonAdminUserGetsAppropriateErrorWhenTryingToCreateProject()
public void testAdminCanCreateSimpleProject()
public void testAdminCanCreateProjectUsingOnlyRequiredFields()
public void testWhenCreatingProjectWithNonExistingAvatarIdInvalidRequestResponseIsReturned()
public void testCreatingProjectWithTheNameThatAlreadyExistsFails()
public void testCreatingProjectWithTheKeyThatAlreadyExistsFails()
public void testCreatingProjectWithNonExistingLeadFails()
public void testCreatingProjectWithNonExistingSchemesFails()
public void testCreatingProjectWithExistingSchemesSucceeds()
public void testCreatingProjectWithNonExistentCategoryFails()
public void testProjectCanBeCreatedWithExistingCategory()
public void testEachFieldCanBeUpdatedSeparately()
public void testAllFieldsCanBeUpdatedAtOnce()
public void testAnonymousGetsNotLoggedInResponseWhenUpdatingProject()
public void testNonAdminUserGetsForbiddenResponseWhenUpdatingProject()
public void testBadRequestResponseWhenUpdateDataIsNotRight()
public void test404WhenTryingToUpdateProjectThatDoesNotExist()
public void shouldCreateProjectWithWorkflowSchemeAssignedWhenDefaultScheme()
public void shouldCreateProjectWithWorkflowSchemeAssignedWhenCommonDefaultSchemeForManyProjectAndDontCreateRubbishWorkflows()
public void shouldCreateManyProjectsWithCommonCustomWorkflowSchemeAndShouldNotCreateAnyOthersWorkflowSchemesAndWorkflows()
public void shouldCreateProjectWithCustomWorkflowScheme()
public void shouldCreateProjectWithCustomDraftWorkflowScheme()
public void shouldNotCreateProjectWhenWorkflowSchemeDoesntExist()
public void shouldCreateProjectWhenWorkflowSchemeActive()
public void shouldCreateProjectWhenWorkflowSchemeIsDraft()
public void shouldNotCreateProjectWhenProjectTypeKeyNotExist()
public void shouldNotCreateProjectWhenProjectTypeTemplateNotExist()
public void shouldNotCreateProjectWhenUnavailableProjectTypeRequested()
public void shouldNotCreateProjectWhenLoggedNotAsAdmin()
public void shouldNotCreateSecondTheSameRequestForProjectCreation()
public void testDeletingProjectAsAnonymousFailsWith401()
public void testDeletingNonExistingProjectAsAnonymousFailsWith401()
public void testDeletingProjectAsNonAdminFailsWith403()
public void testDeletingNonExistingProjectAsNonAdminFailsWith404()
public void testDeletingProjectThatUserCannotSeeFailsWith404()
public void testDeletingProjectWithNonsenseKeyFailsWith404()
public void testDeletingExistingProjectByKeyAsAdminSucceedsWithNoContentResponse()
public void testDeletingExistingProjectByIdAsAdminSucceedsWithNoContentResponse()
public void testGetAvatars_normalMode() throws Exception
Exception
public void testViewProjectWithEditedKey() throws Exception
Exception
public void testViewProjectsExpandDescription() throws Exception
Exception
public void testViewProjectsExpandLead() throws Exception
Exception
public void testViewProjectsExpandDescriptionAndLead() throws Exception
Exception
public void setUpTest()
public void testChangeLeadOfProjectWithTooLongKey()
public void tearDownTest()
protected final void assertResponseContainsAnyOfErrorMessages(com.sun.jersey.api.client.ClientResponse response, String... errorMessageRegexp)
protected final com.atlassian.jira.testkit.client.JiraHttpClient createHttpClient()
Copyright © 2002-2023 Atlassian. All Rights Reserved.