|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.assertions.TextAssertionsImpl
public class TextAssertionsImpl
An implementation of the TextAssertions
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel |
| Constructor Summary | |
|---|---|
TextAssertionsImpl()
|
|
TextAssertionsImpl(net.sourceforge.jwebunit.WebTester tester)
|
|
| Method Summary | |
|---|---|
void |
assertAtLeastOneTextPresent(Locator locator,
String option1,
String... moreOptions)
Asserts that at least one of the provided text strings is present in the locator. |
void |
assertRegexMatch(Locator locator,
String regexPattern)
Synonym for TextAssertions.assertRegexMatch(String,String) that calls getText() on the provided
locator. |
void |
assertRegexMatch(String srcText,
String regexPattern)
This asserets that the regular expression pattern 'regexPattern' has at least one match somewhere inside 'srcText' |
void |
assertRegexNoMatch(Locator locator,
String regexPattern)
Synonym for TextAssertions.assertRegexNoMatch(String,String) that calls getText() on the provided
locator. |
void |
assertRegexNoMatch(String srcText,
String regexPattern)
This asserets that the regular expression pattern 'regexPattern' has NO match somewhere inside 'srcText' |
void |
assertTextNotPresent(Locator locator,
String expectedText)
Synonym for TextAssertions.assertTextNotPresent(String,String) that calls getText() on the provided
locator. |
void |
assertTextNotPresent(String expectedText)
Asserts that the given text cannot be found in the current page. |
void |
assertTextNotPresent(String srcText,
String expectedText)
Asserts that 'expectedText' can NOT be found in 'srcText'. |
void |
assertTextPresent(Locator locator,
String expectedText)
Synonym for TextAssertions.assertTextPresent(String,String) that calls getText() on the provided
locator. |
void |
assertTextPresent(String expectedText)
Asserts that 'expectedText' can be found in the current page. |
void |
assertTextPresent(String srcText,
String expectedText)
Asserts that 'expectedText' can be found in 'srcText'. |
void |
assertTextPresentHtmlEncoded(String expectedText)
Asserts that 'expectedText' can be found in the current page in a "HTML Encoded" form. |
void |
assertTextPresentNumOccurences(Locator locator,
String expectedText,
int numOccurences)
Synonym for TextAssertions.assertTextPresentNumOccurences(String,String,int) that calls getText() on the provided
locator. |
void |
assertTextPresentNumOccurences(String expectedText,
int numOccurences)
Asserts that 'expectedText' can be found in the current page exactly 'numOccurences' times. |
void |
assertTextPresentNumOccurences(String srcText,
String subString,
int expectedCount)
Asserts that 'expectedText' can be found in 'srcText' exactly 'numOccurences' times. |
void |
assertTextSequence(Locator locator,
String[] expectedTextSequence)
Synonym for TextAssertions.assertTextSequence(String,String[]) that calls getText() on the provided
locator. |
void |
assertTextSequence(Locator locator,
String expected1,
String... expected2)
Synonym for TextAssertions.assertTextSequence(String,String[]) that calls getText() on the provided
locator. |
void |
assertTextSequence(String srcText,
String[] expectedTextSequence)
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText' |
void |
assertTextSequence(String srcText,
String expected1,
String... expected2)
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText' |
| Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.functest.framework.log.FuncTestLogger |
|---|
log, log |
| Constructor Detail |
|---|
public TextAssertionsImpl()
public TextAssertionsImpl(net.sourceforge.jwebunit.WebTester tester)
| Method Detail |
|---|
public void assertTextPresent(String expectedText)
TextAssertions
assertTextPresent in interface TextAssertionsexpectedText - the expected textpublic void assertTextPresentHtmlEncoded(String expectedText)
TextAssertionsThe encoding expects <, >, ", ', and & to be encoded to appropriate HTML encoding.
assertTextPresentHtmlEncoded in interface TextAssertionsexpectedText - the expected textpublic void assertTextNotPresent(String expectedText)
TextAssertions
assertTextNotPresent in interface TextAssertionsexpectedText - the expected text
public void assertTextPresent(Locator locator,
String expectedText)
TextAssertionsTextAssertions.assertTextPresent(String,String) that calls getText() on the provided
locator.
assertTextPresent in interface TextAssertionslocator - the source of the textexpectedText - the expected text
public void assertTextPresent(String srcText,
String expectedText)
TextAssertions
assertTextPresent in interface TextAssertionssrcText - the text to search inexpectedText - the expected text
public void assertTextPresentNumOccurences(String expectedText,
int numOccurences)
TextAssertions
assertTextPresentNumOccurences in interface TextAssertionsexpectedText - the expected textnumOccurences - the number of times the expected text should occur; must be greater than 0.
public void assertTextPresentNumOccurences(String srcText,
String subString,
int expectedCount)
TextAssertions
assertTextPresentNumOccurences in interface TextAssertionssrcText - the text to search insubString - the expected textexpectedCount - the number of times the expected text should occur; must be greater than 0.
public void assertTextPresentNumOccurences(Locator locator,
String expectedText,
int numOccurences)
TextAssertionsTextAssertions.assertTextPresentNumOccurences(String,String,int) that calls getText() on the provided
locator.
assertTextPresentNumOccurences in interface TextAssertionslocator - the source of the textexpectedText - the expected textnumOccurences - the number of times the expected text should occur; must be greater than 0.
public void assertTextNotPresent(String srcText,
String expectedText)
TextAssertions
assertTextNotPresent in interface TextAssertionssrcText - the text to search inexpectedText - the expected text
public void assertTextNotPresent(Locator locator,
String expectedText)
TextAssertionsTextAssertions.assertTextNotPresent(String,String) that calls getText() on the provided
locator.
assertTextNotPresent in interface TextAssertionslocator - the source of the textexpectedText - the expected text
public void assertTextSequence(Locator locator,
String[] expectedTextSequence)
TextAssertionsTextAssertions.assertTextSequence(String,String[]) that calls getText() on the provided
locator.
assertTextSequence in interface TextAssertionslocator - the source of the textexpectedTextSequence - the expected text sequence
public void assertTextSequence(Locator locator,
String expected1,
String... expected2)
TextAssertionsTextAssertions.assertTextSequence(String,String[]) that calls getText() on the provided
locator.
assertTextSequence in interface TextAssertionslocator - the source of the textexpected1 - the first expected text in the sequenceexpected2 - the rest of expected texts in the sequence
public void assertAtLeastOneTextPresent(Locator locator,
String option1,
String... moreOptions)
TextAssertionsAssertionFailedError if none are present.
assertAtLeastOneTextPresent in interface TextAssertionslocator - the source of the textoption1 - the expected textmoreOptions - the expected texts
public void assertTextSequence(String srcText,
String expected1,
String... expected2)
TextAssertions
assertTextSequence in interface TextAssertionssrcText - the text to search inexpected1 - the first expected text in the sequenceexpected2 - the rest of expected texts in the sequence
public void assertTextSequence(String srcText,
String[] expectedTextSequence)
TextAssertions
assertTextSequence in interface TextAssertionssrcText - the text to search inexpectedTextSequence - the expected text sequence
public void assertRegexMatch(String srcText,
String regexPattern)
TextAssertions
assertRegexMatch in interface TextAssertionssrcText - the text source to do the matching inregexPattern - the regex pattern
public void assertRegexNoMatch(String srcText,
String regexPattern)
TextAssertions
assertRegexNoMatch in interface TextAssertionssrcText - the text source to do the matching inregexPattern - the regex pattern
public void assertRegexMatch(Locator locator,
String regexPattern)
TextAssertionsTextAssertions.assertRegexMatch(String,String) that calls getText() on the provided
locator.
assertRegexMatch in interface TextAssertionslocator - the source of the teextregexPattern - the regex pattern
public void assertRegexNoMatch(Locator locator,
String regexPattern)
TextAssertionsTextAssertions.assertRegexNoMatch(String,String) that calls getText() on the provided
locator.
assertRegexNoMatch in interface TextAssertionslocator - the source of the teextregexPattern - the regex pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||