public class StringVerifier extends ComparableVerifier<String,StringVerifier>
| Modifier and Type | Method and Description |
|---|---|
StringVerifier |
hasMinLength(int minLength)
asserts the the validated string has at least the lenght provided by the argument.
|
StringVerifier |
isNotBlank()
asserts that the validated string is not blank.
Examples: "" throws exception " " throws exception null throws exception " a " valid |
isBetween, isGreater, isGreaterOrEqual, isLess, isLessOrEqual, isNotBetweenisEqualTo, isNotEqualTo, isNotNull, isNull, matchespublic StringVerifier isNotBlank()
IllegalArgumentException - if the string is blankpublic StringVerifier hasMinLength(int minLength)
minLength - the minimum length the validated string must haveIllegalArgumentException - if the string is violates the minimum lengthCopyright © 2020. All rights reserved.