public class ViewIssueAssertions extends AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel
Constructor and Description |
---|
ViewIssueAssertions(net.sourceforge.jwebunit.WebTester tester,
Assertions assertions,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
assertAffectsVersionAbsent() |
void |
assertAffectsVersions(String expected)
Asserts that the actual value for the "Affects Version/s" field in this View Issue page is equal to the given
expected version.
|
void |
assertAffectsVersionsNone()
Asserts that the value for the "Affects Version/s" field in this View Issue page is "None".
|
void |
assertAssignee(String userFullName) |
void |
assertComponents(String expected)
Asserts that the actual value for the "Component/s" field in this View Issue page is equal to the given expected
component.
|
void |
assertComponentsAbsent() |
void |
assertComponentsNone() |
void |
assertCustomFieldValue(String fieldId,
String expected)
Asserts the value for a custom field.
|
void |
assertEnvironmentEquals(String expected) |
void |
assertFixVersionAbsent() |
void |
assertFixVersions(String expected)
Asserts that the actual value for the "Fix Version/s" field in this View Issue page is equal to the given
expected version.
|
void |
assertFixVersionsNone()
Asserts that the value for the "Fix Version/s" field in this View Issue page is "None".
|
void |
assertInwardLinkNotPresent(String issueKey) |
void |
assertInwardLinkPresent(String issueKey) |
void |
assertOnViewIssuePage(String issueKey) |
void |
assertOutwardLinkNotPresent(String issueKey) |
void |
assertOutwardLinkPresent(String issueKey) |
void |
assertStatus(String expectedStatus)
Assert that current issue status is equal to expectedStatus.
|
void |
assertSummary(String summary) |
void |
assertTimeTrackingInfo(String original,
String remaining,
String logged)
Asserts the time tracking info shown in the module on the View Issue screen.
|
String |
getAffectsVersionsText()
Returns the Text for the "Affects Version/s" in this View Issue page.
|
String |
getComponentsText() |
String |
getFixVersionsText() |
List<String> |
getInwardLinks()
Returns a list of Issue Keys that are inward links.
|
List<String> |
getOutwardLinks()
Returns a list of Issue Keys that are outward links.
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
public ViewIssueAssertions(net.sourceforge.jwebunit.WebTester tester, Assertions assertions, JIRAEnvironmentData environmentData)
public void assertOnViewIssuePage(String issueKey)
public void assertAssignee(String userFullName)
public void assertStatus(String expectedStatus)
expectedStatus
- expected issue statuspublic void assertOutwardLinkPresent(String issueKey)
public void assertOutwardLinkNotPresent(String issueKey)
public List<String> getOutwardLinks()
public void assertInwardLinkPresent(String issueKey)
public void assertInwardLinkNotPresent(String issueKey)
public List<String> getInwardLinks()
public void assertAffectsVersions(String expected)
If you expect multiple versions then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no affected versions, then give the String "None", or use assertAffectsVersionsNone()
.
expected
- The expected Affects Version(s)getAffectsVersionsText()
,
assertFixVersions(String)
public void assertAffectsVersionsNone()
Alternative to calling assertAffectsVersions("None")
assertAffectsVersions(String)
public String getAffectsVersionsText()
Note that the text has whitespace collapsed, so it will return values like "1.0, 1.1, 2.0". If there are no affected versions set, then the value returned is whatever the page displays (currently "None").
assertAffectsVersions(String)
public void assertFixVersions(String expected)
If you expect multiple versions then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no fix versions, then give the String "None", or use assertFixVersionsNone()
.
expected
- The expected version(s)getFixVersionsText()
,
assertAffectsVersions(String)
public void assertCustomFieldValue(String fieldId, String expected)
fieldId
- the field id e.g. customfield_10000
expected
- The expected valuepublic void assertFixVersionsNone()
Alternative to calling assertFixVersions("None")
assertFixVersions(String)
public String getFixVersionsText()
public void assertComponents(String expected)
If you expect multiple components then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no components, then give the String "None", or use assertComponentsNone()
.
expected
- The expected component(s)public void assertComponentsNone()
assertComponents(String)
public String getComponentsText()
public void assertEnvironmentEquals(String expected)
public void assertTimeTrackingInfo(String original, String remaining, String logged)
2h
, 4d 35m
original
- the original estimate - the value that appears under "Estimated"remaining
- the remaining estimate - the value that appears under "Remaining"logged
- the time spent - the value that appears under "Logged"public void assertComponentsAbsent()
public void assertFixVersionAbsent()
public void assertAffectsVersionAbsent()
public void assertSummary(String summary)
Copyright © 2002-2016 Atlassian. All Rights Reserved.