public interface TextDisplayFixture
| Modifier and Type | Method and Description |
|---|---|
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
. |
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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.