public class URLAssertionsImpl extends Object implements URLAssertions
URLAssertions
.Constructor and Description |
---|
URLAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
assertCurrentURLEndsWith(String expectedEnd)
Make sure the current URL ends with the specified value.
|
void |
assertCurrentURLMatchesRegex(String regex)
Make sure current URL match the passed regular expression.
|
void |
assertCurrentURLPathEndsWith(String expectedEnd)
Make sure the current URL path ends with the specified value.
|
void |
assertURLAreSimilair(String msg,
String expectedURL,
String actualURL)
Makes sure that the 2 URLs are similair enough to be compared
|
@Inject public URLAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
public void assertCurrentURLPathEndsWith(String expectedEnd)
URLAssertions
assertCurrentURLPathEndsWith
in interface URLAssertions
expectedEnd
- the expected current path the check.public void assertCurrentURLEndsWith(String expectedEnd)
URLAssertions
assertCurrentURLEndsWith
in interface URLAssertions
expectedEnd
- the expected end of the current url.public void assertCurrentURLMatchesRegex(String regex)
URLAssertions
assertCurrentURLMatchesRegex
in interface URLAssertions
regex
- the regular to use to match.public void assertURLAreSimilair(String msg, String expectedURL, String actualURL)
URLAssertions
assertURLAreSimilair
in interface URLAssertions
msg
- the assertyion messageexpectedURL
- the expected URLactualURL
- the actual URLCopyright © 2002-2019 Atlassian. All Rights Reserved.