Class PluginSettingsResourceTest

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

public class PluginSettingsResourceTest extends RestCrowdServiceAcceptanceTestCase
  • Field Details

  • Constructor Details

    • PluginSettingsResourceTest

      public PluginSettingsResourceTest(String name)
    • PluginSettingsResourceTest

      public PluginSettingsResourceTest(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)
      Returns the "root" WebResource. 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 user
      password - password of the user
      Returns:
      root WebResource
    • testAnonymousCannotUseResource

      public void testAnonymousCannotUseResource()
    • testNonAdminCannotUseResource

      public void testNonAdminCannotUseResource()
    • testAdminCanUseResource

      public void testAdminCanUseResource()
    • testShouldHandleLists

      public void testShouldHandleLists() throws Exception
      Throws:
      Exception
    • testShouldHandleMaps

      public void testShouldHandleMaps() throws Exception
      Throws:
      Exception