public class TestOptionSetManagerImpl extends Object
Modifier and Type | Field and Description |
---|---|
DatabaseContainer |
databaseContainer |
Constructor and Description |
---|
TestOptionSetManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAnOptionToAnOptionSetAppendsItToTheEnd() |
void |
creatingAnOptionSetIsStoredCorrectly() |
void |
deletingTheOptionSetRemovesAllEntriesForIt() |
void |
gettingOptionSetIgnoresIssueTypesThatDoNotExist() |
void |
optionCanBeAddedToAnEmptyOptionSet() |
void |
removingAnOptionMaintainsTheOptionSetOrdering() |
void |
removingAnOptionThatDoesNotExistInTheSetDoesNothing() |
void |
runningWithFieldConfigurationLockedBlocksConcurrentModificationsOfTheOptionSet()
This is to test to make sure that we lock the option set via the
QFieldConfiguration.FIELD_CONFIGURATION . |
void |
setUp() |
void |
updatingAnOptionSetReplacesTheCurrentOptionSetItems() |
public DatabaseContainer databaseContainer
public void creatingAnOptionSetIsStoredCorrectly()
public void updatingAnOptionSetReplacesTheCurrentOptionSetItems()
public void removingAnOptionMaintainsTheOptionSetOrdering()
public void removingAnOptionThatDoesNotExistInTheSetDoesNothing()
public void addAnOptionToAnOptionSetAppendsItToTheEnd()
public void optionCanBeAddedToAnEmptyOptionSet()
public void gettingOptionSetIgnoresIssueTypesThatDoNotExist()
public void deletingTheOptionSetRemovesAllEntriesForIt()
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)
Copyright © 2002-2019 Atlassian. All Rights Reserved.