|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TextDisplayFixture
Understands state verification and property value queries of GUI components that display text.
| Method Summary | |
|---|---|
TextDisplayFixture |
requireText(Pattern pattern)
Asserts that the text of this fixture's matches the given regular expression
pattern. |
TextDisplayFixture |
requireText(String expected)
Asserts that the text of this fixture's is equal to or matches the specified
String. |
String |
text()
Returns the text of this fixture's . |
| Method Detail |
|---|
String text()
Component.
Component.TextDisplayFixture requireText(String expected)
Component is equal to or matches the specified
String.
expected - the text to match. It can be a regular expression.
AssertionError - if the text of the target component is not equal to or does not match the given one.TextDisplayFixture requireText(Pattern pattern)
Component matches the given regular expression
pattern.
pattern - the regular expression pattern to match.
NullPointerException - if the given regular expression pattern is null.
AssertionError - if the text of the target component does not match the given regular expression pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||