Class TestOptionSetManagerImpl
java.lang.Object
com.atlassian.jira.issue.fields.option.TestOptionSetManagerImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidThis is to test to make sure that we lock the option set via theQFieldConfiguration.FIELD_CONFIGURATION.voidsetUp()void
-
Field Details
-
databaseContainer
-
-
Constructor Details
-
TestOptionSetManagerImpl
public TestOptionSetManagerImpl()
-
-
Method Details
-
setUp
- 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)
-