Interface EnumerableAssert<T,U extends EnumerableAssert<T,U>>
-
- Type Parameters:
T
- the enumerable typeU
- the enumerable assert type
- All Superinterfaces:
GenericObjectAssert<T,U>
- All Known Subinterfaces:
BooleanArrayAssert
,ByteArrayAssert
,CharArrayAssert
,CharSequenceAssert
,DoubleArrayAssert
,FloatArrayAssert
,GenericBooleanArrayAssert<T>
,GenericByteArrayAssert<T>
,GenericCharArrayAssert<T>
,GenericCharSequenceAssert<T,U>
,GenericDoubleArrayAssert<T>
,GenericFloatArrayAssert<T>
,GenericIntArrayAssert<T>
,GenericIterableAssert<T,U,V>
,GenericListAssert<T,U,V>
,GenericLongArrayAssert<T>
,GenericMapAssert<T,U,V,W>
,GenericObjectArrayAssert<T,U>
,GenericShortArrayAssert<T>
,GenericStringAssert<T>
,IntArrayAssert
,IterableAssert<T>
,ListAssert<T>
,LongArrayAssert
,MapAssert<T,U>
,ObjectArrayAssert
,ShortArrayAssert
,StringAssert
- All Known Implementing Classes:
AbstractBooleanArrayAssert
,AbstractByteArrayAssert
,AbstractCharArrayAssert
,AbstractCharSequenceAssert
,AbstractDoubleArrayAssert
,AbstractFloatArrayAssert
,AbstractIntArrayAssert
,AbstractIterableAssert
,AbstractListAssert
,AbstractLongArrayAssert
,AbstractMapAssert
,AbstractObjectArrayAssert
,AbstractShortArrayAssert
,AbstractStringAssert
public interface EnumerableAssert<T,U extends EnumerableAssert<T,U>> extends GenericObjectAssert<T,U>
Enumerable assertions.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract 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.U
isNotEmpty()
Verifies that the enumerable is not empty.U
isNullOrEmpty()
Verifies that the enumerable is null or empty.-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
-
-
-
Method Detail
-
hasSameSizeAs
U hasSameSizeAs(java.lang.Iterable<?> other)
Verifies that the enumerable has the same size as the other.- Parameters:
other
- the other- Returns:
- the enumerable assert
- Since:
- 1.0
-
hasSameSizeAs
U hasSameSizeAs(java.lang.Object array)
Verifies that the enumerable has the same size as the array.- Parameters:
array
- the other- Returns:
- the enumerable assert
- Since:
- 1.0
-
hasSize
U hasSize(int expected)
Verifies that the enumerable has the expected size.- Parameters:
expected
- the array- Returns:
- the enumerable assert
- Since:
- 1.0
-
isEmpty
U isEmpty()
Verifies that the enumerable is empty.- Returns:
- the enumerable assert
- Since:
- 1.0
-
isNotEmpty
U isNotEmpty()
Verifies that the enumerable is not empty.- Returns:
- the enumerable assert
- Since:
- 1.0
-
isNullOrEmpty
U isNullOrEmpty()
Verifies that the enumerable is null or empty.- Returns:
- the enumerable assert
- Since:
- 1.0
-
-