com.atlassian.crowd.acceptance.tests.applications.crowdid.server
Class OpenIDServerTestWithOpenID2

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.applications.crowdid.server.OpenIDServerTestWithOpenID2

public class OpenIDServerTestWithOpenID2
extends Object

Direct HTTP tests against the OpenID resources, as a complement to the full browser tests in OpenIDAuthenticationTest.


Constructor Summary
OpenIDServerTestWithOpenID2()
           
 
Method Summary
 void ableToAssociateWithProvider()
           
 void authenticationRequestFailsWhenRealmDoesNotMatchReturnToUrl()
           
 void authenticationRequestPassesWhenRealmIsProvidedAndMatchesReturnToUrl()
           
 void authenticationRequestProvidesPromptForUserAuthentication()
           
 void authenticationRequestRedirectedAsGetProvidesPromptForUserAuthentication()
          The request from the user agent may be a POST or a GET, so test the GET case.
 void discoveryOfUserIdentifierFindsSignons()
           
 void findBaseUrlForApplication()
           
static org.hamcrest.Matcher<org.openid4java.discovery.DiscoveryInformation> openIdWithVersionEndpointAndClaimedId(String version, String endpoint, String claimedId)
           
 void testOpenId2ResourceHasCorrectMediaType()
           
 void testOpenId2ResourceIsDiscoverable()
           
 void userIdentityPageIsServedAsHtmlByDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIDServerTestWithOpenID2

public OpenIDServerTestWithOpenID2()
Method Detail

findBaseUrlForApplication

public void findBaseUrlForApplication()

testOpenId2ResourceHasCorrectMediaType

public void testOpenId2ResourceHasCorrectMediaType()
                                            throws Exception
Throws:
Exception

testOpenId2ResourceIsDiscoverable

public void testOpenId2ResourceIsDiscoverable()
                                       throws org.openid4java.discovery.DiscoveryException
Throws:
org.openid4java.discovery.DiscoveryException

ableToAssociateWithProvider

public void ableToAssociateWithProvider()
                                 throws Exception
Throws:
Exception

authenticationRequestProvidesPromptForUserAuthentication

public void authenticationRequestProvidesPromptForUserAuthentication()
                                                              throws Exception
Throws:
Exception

authenticationRequestFailsWhenRealmDoesNotMatchReturnToUrl

public void authenticationRequestFailsWhenRealmDoesNotMatchReturnToUrl()
                                                                throws Exception
Throws:
Exception

authenticationRequestPassesWhenRealmIsProvidedAndMatchesReturnToUrl

public void authenticationRequestPassesWhenRealmIsProvidedAndMatchesReturnToUrl()
                                                                         throws Exception
Throws:
Exception

authenticationRequestRedirectedAsGetProvidesPromptForUserAuthentication

public void authenticationRequestRedirectedAsGetProvidesPromptForUserAuthentication()
                                                                             throws Exception
The request from the user agent may be a POST or a GET, so test the GET case.

Throws:
Exception

userIdentityPageIsServedAsHtmlByDefault

public void userIdentityPageIsServedAsHtmlByDefault()
                                             throws IOException
Throws:
IOException

discoveryOfUserIdentifierFindsSignons

public void discoveryOfUserIdentifierFindsSignons()
                                           throws org.openid4java.discovery.DiscoveryException
Throws:
org.openid4java.discovery.DiscoveryException

openIdWithVersionEndpointAndClaimedId

public static org.hamcrest.Matcher<org.openid4java.discovery.DiscoveryInformation> openIdWithVersionEndpointAndClaimedId(String version,
                                                                                                                         String endpoint,
                                                                                                                         String claimedId)


Copyright © 2014 Atlassian. All Rights Reserved.