|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sourceforge.jwebunit.junit.WebTestCase com.atlassian.crowd.acceptance.utils.CrowdWebTestCase com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase com.atlassian.crowd.acceptance.tests.applications.crowdid.server.CrowdIDServerAcceptanceTestCase com.atlassian.crowd.acceptance.tests.applications.crowdid.server.OpenIDServerTest
public class OpenIDServerTest
Field Summary | |
---|---|
protected static String |
CLIENT_NAME
|
protected static String |
OPENID_CLIENT_LOGIN
|
protected static String |
OPENID_SERVER_URL
|
protected static String |
OPENIDSERVER_LOGIN_URL_ADMIN
|
Fields inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase |
---|
ADMIN_PW, baseUrl, CROWD_ADMIN_EMAIL_ADDRESS, CROWD_ADMIN_FULLNAME, CROWD_ADMIN_USER, CROWD_ADMINISTRATORS_GROUP, crowdBaseUrl, crowdConsole, crowdResourceBundle, specProperties |
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
customTester, tester |
Constructor Summary | |
---|---|
OpenIDServerTest()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
tearDown()
|
void |
testAdminTrustRelationships()
|
void |
testApprovedSites()
|
void |
testEditProfilesCanSetNewDefaultProfileForUser()
|
void |
testEditProfilesPageCorrectlyEscapesProfileNameToProtectAgainstPersistedXSS()
|
void |
testEditProfilesPageIsNotVulnerableToReflectedXSS()
Regression test for CWD-3428 |
void |
testEditProfilesSetDefaultProfileForUserIsCsrfProtected()
|
void |
testEditProfilesXsrfProtectionRejectsActionWithNoXsrfToken()
|
void |
testFooterShowsVersion()
|
void |
testIncludeFilesAreNotDirectlyAccessible()
|
void |
testInternalOpenIDProfilePageShowsURLInEncodedFormat()
|
void |
testLoginHistory()
|
void |
testLoginPageHasCsrfProtection()
|
void |
testProfile()
|
void |
testRejectedAuthenticationRepeatsCorrectlyEncodedUsername()
|
void |
testUnableToEditProfileForAnotherUser()
|
void |
testUnableToViewProfileForAnotherUser()
|
void |
testViewPublicProfilePageWithEncodedCharactersShowsOpenIdUrlInEncodedFormat()
|
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowdid.server.CrowdIDServerAcceptanceTestCase |
---|
getApplicationName, getLocalTestPropertiesFileName, getResourceBundleName |
Methods inherited from class com.atlassian.crowd.acceptance.tests.ApplicationAcceptanceTestCase |
---|
getBaseUrl, getCrowdHome, getCurrentlyLoggedInCrowdUserFullName, getTestProperty, intendToModifyData, loginToCrowd, loginToCrowd, logoutFromCrowd, restoreBaseSetup, restoreCrowdFromXML, useApp, useCrowd, verifyGroupDoesNotExistInCrowd, verifyGroupDoesNotExistInCrowdWithCaseSensitiveName, verifyGroupExistsInCrowd, verifyUserDoesNotExistInCrowd, verifyUserExistsInCrowd |
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSelectOptionValuesPresent, 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, assertTitleEqualsKey, assertTitleMatch, assertTitleNotEquals, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFieldsForLabel, getFormElementValue, getHeader, getImage, getLabeledFieldValue, getMessage, getMessage, getPageSource, getResponseHeaders, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox |
Methods inherited from class junit.framework.TestCase |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static String OPENIDSERVER_LOGIN_URL_ADMIN
protected static String OPENID_CLIENT_LOGIN
protected static String OPENID_SERVER_URL
protected static final String CLIENT_NAME
Constructor Detail |
---|
public OpenIDServerTest()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class ApplicationAcceptanceTestCase
Exception
public void tearDown() throws Exception
tearDown
in class ApplicationAcceptanceTestCase
Exception
public void testProfile()
public void testApprovedSites()
public void testLoginHistory()
public void testAdminTrustRelationships()
public void testInternalOpenIDProfilePageShowsURLInEncodedFormat()
public void testViewPublicProfilePageWithEncodedCharactersShowsOpenIdUrlInEncodedFormat()
public void testEditProfilesXsrfProtectionRejectsActionWithNoXsrfToken()
public void testEditProfilesSetDefaultProfileForUserIsCsrfProtected()
public void testEditProfilesCanSetNewDefaultProfileForUser()
public void testRejectedAuthenticationRepeatsCorrectlyEncodedUsername()
public void testFooterShowsVersion()
public void testEditProfilesPageCorrectlyEscapesProfileNameToProtectAgainstPersistedXSS()
public void testEditProfilesPageIsNotVulnerableToReflectedXSS()
public void testIncludeFilesAreNotDirectlyAccessible()
public void testUnableToViewProfileForAnotherUser()
public void testUnableToEditProfileForAnotherUser()
public void testLoginPageHasCsrfProtection() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |