public interface AssertThatString extends AssertThatObject<String>
This interface is returned by the various methods
assertThat exposed by TestSuite.
| Modifier and Type | Method and Description |
|---|---|
default void |
containsString(String substring)
Check that a string another string.
|
default void |
endsWith(String prefix)
Check that a string ends with another one.
|
default void |
matchesRegex(Pattern pattern)
Validate a string with a
Pattern. |
default void |
matchesRegex(String regex)
Validate a string with a regex.
|
default void |
startsWith(String prefix)
Check that a string starts with another one.
|
default void containsString(String substring)
substring - the other string.default void startsWith(String prefix)
prefix - the prefix.default void endsWith(String prefix)
prefix - the prefix.default void matchesRegex(Pattern pattern)
Pattern.pattern - the pattern to be used.default void matchesRegex(String regex)
regex - The regex to be used for the validation.Copyright © 2014. All rights reserved.