Class AddPrincipalTest


public class AddPrincipalTest extends CrowdAcceptanceTestCaseWithEmailServer
Web acceptance test for the adding of a Principal
  • Field Details

  • Constructor Details

    • AddPrincipalTest

      public AddPrincipalTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class CrowdAcceptanceTestCaseWithEmailServer
      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()