Class AddPrincipalTest
java.lang.Object
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCaseWithEmailServer
com.atlassian.crowd.acceptance.tests.integration.AddPrincipalTest
Web acceptance test for the adding of a Principal
-
Field Summary
FieldsFields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCaseWithEmailServer
mailServerRule
Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
applinksClient, BACKUP_RESOURCE, BATCHED_TEST_RULE, COOKIE_ABSENT, i18n, IMMUTABLE_USER_NAME, IMMUTABLE_USER_PW, JSESSIONID_COOKIE, log, REMEMBER_ME_COOKIE, restAdminClient, SSO_COOKIE, TEST_USER_DISPLAYNAME, TEST_USER_NAME, TEST_USER_PW, testedProduct, testkitClient, webDriverRules
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
Test to assert that the validation error messages that occur when all input fields are left empty are displayed only once when supplied to the AddPrincipal class.void
void
void
void
void
void
setUp()
void
void
void
void
void
void
void
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCaseWithEmailServer
configureMailServer, getEmailAddress, waitForExactlyOneMessage
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdWebDriverTest
assertAtRelativePath, assertAtURIContaining, assertAtURIEndingWith, assertAtUrl, assertHasError, assertHasErrorKey, bind, bind, clearAndInvalidateSsoCookieIfPresent, clearAndInvalidateSsoCookieOrFail, deleteAllCookies, deleteCookie, expectState, getBaseUrl, getBaseUrlWithoutPort, getCookie, getCookieOrThrow, getCurrentUrl, getDriver, getSsoCookieOrFail, getTestkitClient, hasCookie, hasSsoCookie, intendToModifyLdapData, loginAsExpiredPasswordUser, loginAsNonAdmin, loginAsNonAdmin, loginAsSysAdmin, loginAsSysAdmin, loginAsSysAdminWithRememberMe, loginAsUser, loginExpectingFailure, loginImmutableUser, loginImmutableUser, loginTestUser, loginTestUser, logout, manage, navigateToAndBind, navigateToUrl, restoreBaseSetup, restoreCrowdFromXML, restoreCrowdFromXML, waitForUrl, waitUntilAsyncFinished
-
Field Details
-
ldifLoaderRule
-
-
Constructor Details
-
AddPrincipalTest
public AddPrincipalTest()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classCrowdAcceptanceTestCaseWithEmailServer
- Throws:
Exception
-
addPrincipalWithNoDetails
public void addPrincipalWithNoDetails() -
invalidEmailAddress
public void invalidEmailAddress() -
passwordsMatchError
public void passwordsMatchError() -
userAlreadyExistsError
public void userAlreadyExistsError() -
userWithTrailingWhitespaceFailsWithSpecificError
public void userWithTrailingWhitespaceFailsWithSpecificError() -
emailAddressWithTrailingSpacesFailsWithSpecificError
public void emailAddressWithTrailingSpacesFailsWithSpecificError() -
addPrincipalToInternalDirectory
public void addPrincipalToInternalDirectory() -
shouldSendEmailNotificationWhenCheckboxIsSelected
public void shouldSendEmailNotificationWhenCheckboxIsSelected() throws javax.mail.MessagingException, IOException- Throws:
javax.mail.MessagingException
IOException
-
shouldAllowEmptyPasswordIfSendEmailNotificationIsSelected
public void shouldAllowEmptyPasswordIfSendEmailNotificationIsSelected() throws javax.mail.MessagingException, IOException- Throws:
javax.mail.MessagingException
IOException
-
shouldDisplayErrorMessageIfPasswordIsEmptyAndSendEmailNotificationIsNotSelected
public void shouldDisplayErrorMessageIfPasswordIsEmptyAndSendEmailNotificationIsNotSelected() -
shouldDisableSendEmailNotificationCheckboxWhenMailServerIsNotConfigured
public void shouldDisableSendEmailNotificationCheckboxWhenMailServerIsNotConfigured() -
shouldDisableSendEmailNotificationWhenExternalDirectoryIsSelected
public void shouldDisableSendEmailNotificationWhenExternalDirectoryIsSelected() -
passwordDoesNotMatchInternalDirectoryComplexityRequirements
public void passwordDoesNotMatchInternalDirectoryComplexityRequirements() -
addModifyRemoveLDAPPrincipal
public void addModifyRemoveLDAPPrincipal() -
addPrincipalToInternalDirectoryWithMixedName
public void addPrincipalToInternalDirectoryWithMixedName() -
keyPresentOnce
public void keyPresentOnce()Test to assert that the validation error messages that occur when all input fields are left empty are displayed only once when supplied to the AddPrincipal class. -
noDirectoryIsSelectedByDefault
public void noDirectoryIsSelectedByDefault() -
directorySelectionIsSaved
public void directorySelectionIsSaved() -
nonExistingDirectorySelection
public void nonExistingDirectorySelection() -
onlyDirectoryIsSelected
public void onlyDirectoryIsSelected() -
displayNameAutoPopulationWorksCorrectly
public void displayNameAutoPopulationWorksCorrectly()
-