public class ViewIssueAssertions extends Object
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 |
assertIssueNotFound() |
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.
|
@Inject 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)
assertAffectsVersionsNone()
.expected
- The expected Affects Version(s)getAffectsVersionsText()
,
assertFixVersions(String)
public void assertAffectsVersionsNone()
assertAffectsVersions("None")
assertAffectsVersions(String)
public String getAffectsVersionsText()
assertAffectsVersions(String)
public void assertFixVersions(String expected)
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()
assertFixVersions("None")
assertFixVersions(String)
public String getFixVersionsText()
public void assertComponents(String expected)
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)
public void assertIssueNotFound()
Copyright © 2002-2021 Atlassian. All Rights Reserved.