Class AbstractStringAssert<T extends GenericStringAssert<T>>
- java.lang.Object
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractObjectAssert<T,U>
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractCharSequenceAssert<java.lang.String,T>
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractStringAssert<T>
-
- Type Parameters:
T
- the generic string assert type
- All Implemented Interfaces:
EnumerableAssert<java.lang.String,T>
,GenericCharSequenceAssert<java.lang.String,T>
,GenericComparableAssert<java.lang.String,T>
,GenericObjectAssert<java.lang.String,T>
,GenericStringAssert<T>
public abstract class AbstractStringAssert<T extends GenericStringAssert<T>> extends AbstractCharSequenceAssert<java.lang.String,T> implements GenericStringAssert<T>
Abstract string assert.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AbstractStringAssert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description U
hasSameSizeAs(java.lang.Iterable<?> other)
Verifies that the enumerable has the same size as the other.U
hasSameSizeAs(java.lang.Object array)
Verifies that the enumerable has the same size as the array.U
hasSize(int expected)
Verifies that the enumerable has the expected size.U
isEmpty()
Verifies that the enumerable is empty.T
isGreaterThan(java.lang.String value)
Verifies that the comparable is greater than the value.T
isGreaterThanOrEqualTo(java.lang.String value)
Verifies that the comparable is greater than, or equal to, the value.T
isLessThan(java.lang.String value)
Verifies that the comparable is less than the value.T
isLessThanOrEqualTo(java.lang.String value)
Verifies that the comparable is less than, or equal to, the value.U
isNotEmpty()
Verifies that the enumerable is not empty.U
isNullOrEmpty()
Verifies that the enumerable is null or empty.-
Methods inherited from class io.github.henryssondaniel.teacup.core.assertion.AbstractCharSequenceAssert
contains, containsIgnoringCase, containsOnlyOnce, containsPattern, containsSequence, containsSubsequence, doesNotContain, doesNotContainPattern, doesNotEndWith, doesNotMatch, doesNotStartWith, endsWith, hasSameSizeAs, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingWhitespace, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isSubstringOf, isXmlEqualTo, matches, startsWith
-
Methods inherited from class io.github.henryssondaniel.teacup.core.assertion.AbstractObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.EnumerableAssert
hasSameSizeAs, hasSameSizeAs, hasSize, isEmpty, isNotEmpty, isNullOrEmpty
-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.GenericCharSequenceAssert
contains, containsIgnoringCase, containsOnlyOnce, containsPattern, containsSequence, containsSubsequence, doesNotContain, doesNotContainPattern, doesNotEndWith, doesNotMatch, doesNotStartWith, endsWith, hasSameSizeAs, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingWhitespace, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isSubstringOf, isXmlEqualTo, matches, startsWith
-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
-
-
-
Method Detail
-
isGreaterThan
public T isGreaterThan(java.lang.String value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is greater than the value.- Specified by:
isGreaterThan
in interfaceGenericComparableAssert<java.lang.String,T extends GenericStringAssert<T>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isGreaterThanOrEqualTo
public T isGreaterThanOrEqualTo(java.lang.String value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is greater than, or equal to, the value.- Specified by:
isGreaterThanOrEqualTo
in interfaceGenericComparableAssert<java.lang.String,T extends GenericStringAssert<T>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isLessThan
public T isLessThan(java.lang.String value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is less than the value.- Specified by:
isLessThan
in interfaceGenericComparableAssert<java.lang.String,T extends GenericStringAssert<T>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isLessThanOrEqualTo
public T isLessThanOrEqualTo(java.lang.String value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is less than, or equal to, the value.- Specified by:
isLessThanOrEqualTo
in interfaceGenericComparableAssert<java.lang.String,T extends GenericStringAssert<T>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
hasSameSizeAs
public U hasSameSizeAs(java.lang.Iterable<?> other)
Description copied from interface:EnumerableAssert
Verifies that the enumerable has the same size as the other.- Specified by:
hasSameSizeAs
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Parameters:
other
- the other- Returns:
- the enumerable assert
-
hasSameSizeAs
public U hasSameSizeAs(java.lang.Object array)
Description copied from interface:EnumerableAssert
Verifies that the enumerable has the same size as the array.- Specified by:
hasSameSizeAs
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Parameters:
array
- the other- Returns:
- the enumerable assert
-
hasSize
public U hasSize(int expected)
Description copied from interface:EnumerableAssert
Verifies that the enumerable has the expected size.- Specified by:
hasSize
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Parameters:
expected
- the array- Returns:
- the enumerable assert
-
isEmpty
public U isEmpty()
Description copied from interface:EnumerableAssert
Verifies that the enumerable is empty.- Specified by:
isEmpty
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Returns:
- the enumerable assert
-
isNotEmpty
public U isNotEmpty()
Description copied from interface:EnumerableAssert
Verifies that the enumerable is not empty.- Specified by:
isNotEmpty
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Returns:
- the enumerable assert
-
isNullOrEmpty
public U isNullOrEmpty()
Description copied from interface:EnumerableAssert
Verifies that the enumerable is null or empty.- Specified by:
isNullOrEmpty
in interfaceEnumerableAssert<T,U extends EnumerableAssert<T,U>>
- Returns:
- the enumerable assert
-
-