com.atlassian.crowd.acceptance.tests.crowdid.client
Class OpenIDAuthenticationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
              extended by com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
                  extended by com.atlassian.crowd.acceptance.tests.crowdid.client.CrowdIDClientAcceptanceTestCase
                      extended by com.atlassian.crowd.acceptance.tests.crowdid.client.OpenIDAuthenticationTest
All Implemented Interfaces:
junit.framework.Test

public class OpenIDAuthenticationTest
extends CrowdIDClientAcceptanceTestCase

This class contains tests which examine the authentication process between the crowd-openid-client and crowd-openid-server. The openid server retrieves user data from the crowd-console. It is a 3-webapp test that currently tests basic forms of OpenID authentication + SREG exchange.


Field Summary
protected static java.lang.String OPENID_URL
           
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
ADMIN_PW, ADMIN_USER, baseUrl, context, crowdBaseUrl, crowdConsole, crowdContext, crowdPort, crowdResourceBundle, logger, path, port, rootUrl, specProperties
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
tester
 
Constructor Summary
OpenIDAuthenticationTest()
           
 
Method Summary
protected  void assertAtClientLoginPage()
           
protected  void assertAtClientProfilePage()
           
protected  void assertAtServerAllowDenyPage()
           
protected  void assertAtServerLoginPage()
           
 void setUp()
           
 void testOpenIDAuthenticationAllow()
           
 void testOpenIDAuthenticationDeny()
           
 void testOpenIDAuthenticationImmediate_fail()
           
 void testOpenIDAuthenticationStateless()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.crowdid.client.CrowdIDClientAcceptanceTestCase
getApplicationName, getResourceBundleName
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase
getTestProperty, log, loginToCrowd, logoutFromCrowd, restoreCrowdFromXML, useApp, useCrowd
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertErrorPresentWithText, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithKey, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertServerResponseContains, assertServerResponseDoesNotContain, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleMatch, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, assertWarningPresentWithKey, assertWarningPresentWithText, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithKey, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getMessage, getPageSource, getServerResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setRadioButton, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, tearDown, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPENID_URL

protected static final java.lang.String OPENID_URL
See Also:
Constant Field Values
Constructor Detail

OpenIDAuthenticationTest

public OpenIDAuthenticationTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class ApplicationAcceptanceTestCase
Throws:
java.lang.Exception

assertAtClientLoginPage

protected void assertAtClientLoginPage()

assertAtServerLoginPage

protected void assertAtServerLoginPage()

assertAtServerAllowDenyPage

protected void assertAtServerAllowDenyPage()

assertAtClientProfilePage

protected void assertAtClientProfilePage()

testOpenIDAuthenticationAllow

public void testOpenIDAuthenticationAllow()

testOpenIDAuthenticationDeny

public void testOpenIDAuthenticationDeny()

testOpenIDAuthenticationStateless

public void testOpenIDAuthenticationStateless()

testOpenIDAuthenticationImmediate_fail

public void testOpenIDAuthenticationImmediate_fail()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.