Class AbstractIntArrayAssert<T extends GenericIntArrayAssert<T>>
- java.lang.Object
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractObjectAssert<T,U>
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractIntArrayAssert<T>
-
- Type Parameters:
T
- the generic int array assert type
- All Implemented Interfaces:
EnumerableAssert<int[],T>
,GenericIntArrayAssert<T>
,GenericObjectAssert<int[],T>
public abstract class AbstractIntArrayAssert<T extends GenericIntArrayAssert<T>> extends AbstractObjectAssert<T,U> implements GenericIntArrayAssert<T>
Abstract int array assert.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AbstractIntArrayAssert()
-
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.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.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.GenericObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
-
-
-
Method Detail
-
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
-
-