Class ChangeHistorySet
java.lang.Object
com.atlassian.jira.functest.framework.changehistory.ChangeHistorySet
This represents a easier way to test change history. A ChangeHistorySet is a set of
ChangeHistoryField
objects by a specified user.- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionChangeHistorySet
(ChangeHistoryList changeHistoryList, String changedBy, String id) ChangeHistorySet
(ChangeHistorySet changeHistorySet) Constructs a new ChangeHistorySet based on an existing one. -
Method Summary
Modifier and TypeMethodDescriptionA shortcut method to add change history field entries.Adds a newChangeHistoryField
to the change history entry.boolean
getId()
int
hashCode()
boolean
isSuperSetOf
(ChangeHistorySet that) Returns true if that ChangeHistorySet has the same name and has zero of more fields that occur in this ChangeHistorySetiterator()
Returns the lastChangeHistoryField
with the specified field name.toString()
-
Constructor Details
-
ChangeHistorySet
-
ChangeHistorySet
Constructs a new ChangeHistorySet based on an existing one.- Parameters:
changeHistorySet
- The existing ChangeHistorySet.
-
-
Method Details
-
getContainingChangeHistoryList
-
getChangedBy
-
getId
-
getFieldChanges
-
add
Adds a newChangeHistoryField
to the change history entry. It is a complete field entry with old and new value- Parameters:
fieldName
- the name of the fieldoldValue
- the old valuenewValue
- the new value- Returns:
- this
-
add
A shortcut method to add change history field entries. This will look back up in the containingChangeHistoryList
and get the previous field values for the named field. It will then use the previous "new value" as the "old value" in this newChangeHistoryField
.- Parameters:
fieldName
- the name of the fieldnewValue
- the new value- Returns:
- this
-
lastOf
Returns the lastChangeHistoryField
with the specified field name. Does this by navigating back up the enclosingChangeHistoryList
- Parameters:
fieldName
- the name of the field- Returns:
- null if it cant be found
-
iterator
-
equals
-
hashCode
public int hashCode() -
toString
-
isSuperSetOf
Returns true if that ChangeHistorySet has the same name and has zero of more fields that occur in this ChangeHistorySet- Parameters:
that
- the other ChangeHistorySet- Returns:
- true if we are a super set of that ChangeHistorySet
-