Class DirectoryResourceTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
com.atlassian.crowd.acceptance.tests.rest.service.DirectoryResourceTest
All Implemented Interfaces:
junit.framework.Test

public class DirectoryResourceTest extends RestCrowdServiceAcceptanceTestCase
  • Field Details

  • Constructor Details

    • DirectoryResourceTest

      public DirectoryResourceTest(String name)
    • DirectoryResourceTest

      public DirectoryResourceTest(String name, RestServer restServer)
  • Method Details

    • getBaseUriBuilder

      protected javax.ws.rs.core.UriBuilder getBaseUriBuilder()
      Description copied from class: RestCrowdServiceAcceptanceTestCase
      Returns the base URI of the REST service.
      Overrides:
      getBaseUriBuilder in class RestCrowdServiceAcceptanceTestCase
      Returns:
      UriBuilder
    • getRootWebTarget

      protected javax.ws.rs.client.WebTarget getRootWebTarget(String userName, String password)
      Description copied from class: RestCrowdServiceAcceptanceTestCase
      Returns the "root" WebTarget. This is the resource that's at the / of the crowd-rest-plugin plugin namespace.
      Overrides:
      getRootWebTarget in class RestCrowdServiceAcceptanceTestCase
      Parameters:
      userName - name of the application
      password - password of the application
      Returns:
      root WebTarget
    • testValidationShouldFailOnInvalidDirectoryAttributesForCrowd

      public void testValidationShouldFailOnInvalidDirectoryAttributesForCrowd()
    • testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd

      public void testValidationShouldFailOnInvalidDirectoryAttributesForAzureAd()
    • testAnonymousCannotUseCrowdResource

      public void testAnonymousCannotUseCrowdResource()
    • testNonAdminCannotUseCrowdResource

      public void testNonAdminCannotUseCrowdResource()
    • testAdminCanUseCrowdResource

      public void testAdminCanUseCrowdResource()
    • testAnonymousCannotUseLdapResource

      public void testAnonymousCannotUseLdapResource()
    • testNonAdminCannotUseLdapResource

      public void testNonAdminCannotUseLdapResource()
    • testAdminCanUseLdapResource

      public void testAdminCanUseLdapResource()
    • testAnonymousCannotUseTestSearchResource

      public void testAnonymousCannotUseTestSearchResource()
    • testNonAdminCannotUseTestSearchResource

      public void testNonAdminCannotUseTestSearchResource()
    • testAdminCanUseTestSearchResource

      public void testAdminCanUseTestSearchResource()