Class TestCreateUserMultiApplicationInstance


public class TestCreateUserMultiApplicationInstance extends TestCreateUserHelper
In a "multi application instance" multiple JIRA Applications (products) has been installed.
During User Creation the applications should be selectable.

When one of the Applications has an error:

  • Application license limit exceeded.
  • No default group configured.
Then the application is not selectable, a generic error message is displayed on top of user creation dialog and a detailed message is displayed next to application's disabled checkbox.
  • Constructor Details

    • TestCreateUserMultiApplicationInstance

      public TestCreateUserMultiApplicationInstance()
  • Method Details

    • setUp

      public void setUp()
    • testShouldCreateUserAndAddToGroupsOfMultipleApplications

      public void testShouldCreateUserAndAddToGroupsOfMultipleApplications()
    • testShouldCreateUserAndOnlyAddToDefaultGroupOfSelectedApplication

      public void testShouldCreateUserAndOnlyAddToDefaultGroupOfSelectedApplication()
    • testShouldCreateUserWhenAdminHasNotSelectedAnyApplications

      public void testShouldCreateUserWhenAdminHasNotSelectedAnyApplications()
    • testShouldWarnUserWhenOneOfAppsHasReachedLicenseLimitAndAllowCreationUsingOtherApp

      public void testShouldWarnUserWhenOneOfAppsHasReachedLicenseLimitAndAllowCreationUsingOtherApp()
    • testShouldWarnUserWhenApplicationHasNoDefaultGroup

      public void testShouldWarnUserWhenApplicationHasNoDefaultGroup()
    • testRoleUserLimitsWhenAllRolesUnderLimit

      public void testRoleUserLimitsWhenAllRolesUnderLimit()
      Tests ApplicationRoleManager.isAnyRoleLimitExceeded() with a number of users equal to the #users granted by license.
    • testRoleUserLimitsWhenOneRoleOverLimit

      public void testRoleUserLimitsWhenOneRoleOverLimit()
      Tests ApplicationRoleManager.isAnyRoleLimitExceeded() where #users exceeds licensed limit in 1 of the 2 roles.
    • testRoleUserLimitsWhenAllRolesOverLimit

      public void testRoleUserLimitsWhenAllRolesOverLimit()
      Tests ApplicationRoleManager.isAnyRoleLimitExceeded() where 2 roles are exceeded.