java.lang.Object | |
↳ | com.atlassian.jira.functest.framework.util.text.TextKit |
A class that handles text assertions and searches.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the given expectedTextSequence of Strings all occur within the given srcText in the order given.
| |||||||||||
Collapses repeated white space ( \n\t) in the string into a single space.
| |||||||||||
Tests if two strings are equal after repeated white space sequences
are collapased into single spaces.
| |||||||||||
Returns true if the 'srcText' contains the given sequence of text.
| |||||||||||
Tests if two strings are equal after repeated white space sequences
are collapased into single spaces.
| |||||||||||
Counts the number of times that subString occurs within the given text.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Returns true if the given expectedTextSequence of Strings all occur within the given srcText in the order given.
srcText | the text to search |
---|---|
expectedTextSequence | the expected text sequence |
Collapses repeated white space ( \n\t) in the string into a single space.
text | the text to collapse the white space in |
---|
Tests if two strings are equal after repeated white space sequences are collapased into single spaces.
needle | the first string to test |
---|---|
haystack | the second string to test |
Returns true if the 'srcText' contains the given sequence of text.
srcText | the text to search |
---|---|
expectedTextSequence | the expected text sequence |
Tests if two strings are equal after repeated white space sequences are collapased into single spaces.
string1 | the first string to test |
---|---|
string2 | the second string to test |
Counts the number of times that subString occurs within the given text.
text | The text to search. |
---|---|
subString | The subString that we are searching for. |