Class TestCrowdAuthenticationResource

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest
com.atlassian.jira.webtests.ztests.crowd.embedded.TestCrowdAuthenticationResource
All Implemented Interfaces:
EnvironmentAware, junit.framework.Test

public class TestCrowdAuthenticationResource extends com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest implements EnvironmentAware
Tests the Crowd REST API for the running in Jira.
Since:
v4.3
  • Field Summary

    Fields inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase

    ADMIN_PASSWORD, ADMIN_USERNAME, APPLICATION_NAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, EEEEP_PASSWORD, EEEEP_USERNAME, EVENTS_RESOURCE, GROUP_BADGERS, GROUP_BADGERS_DESCRIPTION, GROUP_CROWD_ADMINS, GROUP_CROWD_TESTERS, GROUP_CROWD_USERS, GROUPS_RESOURCE, MT, NON_ADMIN_USER_NAME, NON_ADMIN_USER_PASSWORD, NON_CROWD_USER_PASSWORD, NON_CROWD_USER_USERNAME, NON_EXISTENT_GROUP, NON_EXISTENT_USER, PENNY_USERNAME, REST_SERVICE_NAME, restServer, SECOND_ADMIN_PASSWORD, SECOND_ADMIN_USERNAME, SESSION_RESOURCE, USERNAME_PARAM, USERS_RESOURCE, WEBHOOKS_RESOURCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest

    testAuthenticationNotify_shouldRequireAuth, testUserAuthentication, testUserAuthentication_AllowAllToAuthenticate, testUserAuthentication_BadCredentials, testUserAuthentication_CommonUserUnauthorised, testUserAuthentication_InactiveUser, testUserAuthentication_NestedUser, testUserAuthentication_NoUser

    Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase

    authenticateUser, authenticateUser, deactivateUser, getBaseUriBuilder, getBaseUriBuilder, getBaseUriBuilder, getRootWebTarget, getServerUriBuilder, getWebTarget, getWebTarget, requestEvents, requestEventToken, setRestServer, tearDown

    Methods inherited from class junit.framework.TestCase

    assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TestCrowdAuthenticationResource

      public TestCrowdAuthenticationResource(String name)
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
      Throws:
      Exception
    • setEnvironmentData

      public void setEnvironmentData(JIRAEnvironmentData environmentData)
      Specified by:
      setEnvironmentData in interface EnvironmentAware
    • testUserAuthentication_UnauthorisedGroupUser

      public void testUserAuthentication_UnauthorisedGroupUser()
      Overrides:
      testUserAuthentication_UnauthorisedGroupUser in class com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest
    • testAuthenticationNotify_shouldProcessDefaultGroups

      public void testAuthenticationNotify_shouldProcessDefaultGroups()
      Overrides:
      testAuthenticationNotify_shouldProcessDefaultGroups in class com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest
    • testAuthenticationNotify_shouldErrorIfNotAllowedToLogin

      public void testAuthenticationNotify_shouldErrorIfNotAllowedToLogin()
      Overrides:
      testAuthenticationNotify_shouldErrorIfNotAllowedToLogin in class com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest