com.atlassian.jira.webtests.ztests.crowd.embedded
Class TestCrowdAuthenticationResource

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
              extended by com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest
                  extended by 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
APPLICATION_NAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, GROUPS_RESOURCE, REST_SERVICE_NAME, SESSION_RESOURCE, USERS_RESOURCE
 
Constructor Summary
TestCrowdAuthenticationResource(String name)
           
 
Method Summary
 void setEnvironmentData(JIRAEnvironmentData environmentData)
           
 void testUserAuthentication_CommonUserUnauthorised()
           
 void testUserAuthentication_UnauthorisedGroupUser()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.AuthenticationResourceTest
testUserAuthentication_AllowAllToAuthenticate, testUserAuthentication_BadCredentials, testUserAuthentication_NestedUser, testUserAuthentication_NoUser, testUserAuthentication
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
authenticateUser, getBaseUriBuilder, getRootWebResource, getWebResource, setRestServer, setUp, statusToString, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCrowdAuthenticationResource

public TestCrowdAuthenticationResource(String name)
Method Detail

setEnvironmentData

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

testUserAuthentication_CommonUserUnauthorised

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

testUserAuthentication_UnauthorisedGroupUser

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.