Class TestOptionSetManagerImpl

java.lang.Object
com.atlassian.jira.issue.fields.option.TestOptionSetManagerImpl

public class TestOptionSetManagerImpl extends Object
  • Field Details

  • Constructor Details

    • TestOptionSetManagerImpl

      public TestOptionSetManagerImpl()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • creatingAnOptionSetIsStoredCorrectly

      public void creatingAnOptionSetIsStoredCorrectly()
    • updatingAnOptionSetReplacesTheCurrentOptionSetItems

      public void updatingAnOptionSetReplacesTheCurrentOptionSetItems()
    • removingAnOptionMaintainsTheOptionSetOrdering

      public void removingAnOptionMaintainsTheOptionSetOrdering()
    • removingAnOptionThatDoesNotExistInTheSetDoesNothing

      public void removingAnOptionThatDoesNotExistInTheSetDoesNothing()
    • addAnOptionToAnOptionSetAppendsItToTheEnd

      public void addAnOptionToAnOptionSetAppendsItToTheEnd()
    • optionCanBeAddedToAnEmptyOptionSet

      public void optionCanBeAddedToAnEmptyOptionSet()
    • gettingOptionSetIgnoresIssueTypesThatDoNotExist

      public void gettingOptionSetIgnoresIssueTypesThatDoNotExist()
    • deletingTheOptionSetRemovesAllEntriesForIt

      public void deletingTheOptionSetRemovesAllEntriesForIt()
    • runningWithFieldConfigurationLockedBlocksConcurrentModificationsOfTheOptionSet

      public void runningWithFieldConfigurationLockedBlocksConcurrentModificationsOfTheOptionSet()

      This is to test to make sure that we lock the option set via the QFieldConfiguration.FIELD_CONFIGURATION. We show this locking by trying to add two options to an option set at the same time.

      If you want to show this failing you may comment out the body of OptionSetManagerImpl.lockFieldConfigurationForEditing(DbConnection, Long)