|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LinkAssertions
Used to make assertions about links.
| Method Summary | |
|---|---|
void |
assertLinkAtNodeContains(String xpath,
String containsUrl)
Assert that a link at specified xpath is present and location contains the given url. |
void |
assertLinkAtNodeEndsWith(String xpath,
String endsWith)
Assert that a link at specified xpath is present and location ends with given url. |
void |
assertLinkIdLocationEndsWith(String linkId,
String endsWith)
Assert that the passed link's destination ends with a the passed value. |
void |
assertLinkIdLocationMatchesRegex(String linkId,
String regex)
Assert that the passed link's destination matches the passed regex. |
void |
assertLinkIdQueryStringContainsJqlQuery(String linkId,
String expectedJqlQuery)
|
void |
assertLinkLocationEndsWith(String linkText,
String endsWith)
Assert that the passed link's destination ends with a the passed value. |
void |
assertLinkLocationEndsWith(com.meterware.httpunit.WebLink link,
String endsWith)
Assert that the passed link's destination ends with the passed value. |
void |
assertLinkNotPresentWithExactText(String xpath,
String text)
Assert that a link with the specified text is not present within the region of the given locator. |
void |
assertLinkPresentWithExactText(String xpath,
String text)
Assert that a link with the specified text is present within the region of the given locator. |
void |
assertLinkQueryStringContainsJqlQuery(com.meterware.httpunit.WebLink link,
String expectedJqlQuery)
|
void |
assertLinkTextQueryStringContainsJqlQuery(String xpath,
String linkText,
String expectedJqlQuery)
|
| Method Detail |
|---|
void assertLinkLocationEndsWith(String linkText,
String endsWith)
linkText - the text of the link to test.endsWith - the expected end of the link's destination.
void assertLinkLocationEndsWith(com.meterware.httpunit.WebLink link,
String endsWith)
link - the link to test.endsWith - the expected end of the link's destination.
void assertLinkIdLocationEndsWith(String linkId,
String endsWith)
linkId - the id to the link to check.endsWith - the expected end of the link's destination.
void assertLinkIdLocationMatchesRegex(String linkId,
String regex)
linkId - the id to the link to check.regex - the regular expression to use in the test.
void assertLinkPresentWithExactText(String xpath,
String text)
xpath - the XPath query to narrow down the search. Should not contain the A element being searched for.text - the exact text within the link.
void assertLinkNotPresentWithExactText(String xpath,
String text)
xpath - the XPath query to narrow down the search. Should not contain the A element being searched for.text - the text within the link.
void assertLinkAtNodeEndsWith(String xpath,
String endsWith)
assertLinkAtNodeContains(String, String) instead as it is less sensitive to breakages
caused by the addition of parameters such as XSRF token.
xpath - the XPath query to specify the anchor element. The xpath expression should end with an A elementendsWith - the expected end of the link's destination.
void assertLinkAtNodeContains(String xpath,
String containsUrl)
xpath - the XPath query to specify the anchor element. The xpath expression should end with an A elementcontainsUrl - the expected url to be contained in the link's destination.
void assertLinkIdQueryStringContainsJqlQuery(String linkId,
String expectedJqlQuery)
void assertLinkTextQueryStringContainsJqlQuery(String xpath,
String linkText,
String expectedJqlQuery)
void assertLinkQueryStringContainsJqlQuery(com.meterware.httpunit.WebLink link,
String expectedJqlQuery)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||