Package org.assertj.core.api
Interface AssertFactory<T,ASSERT>
-
- Type Parameters:
T
- the type to create assertions for.ASSERT
- the assertions class for T.
- All Known Implementing Classes:
ObjectAssertFactory
public interface AssertFactory<T,ASSERT>
A single method factory interface to create anAssert
class for a given type. This factory method typically wraps a call toassertThat(t)
to map to the concrete assert typeASSERT
for the elementT
.This interface is typically used by navigation assertions on iterable types like
AbstractIterableAssert
when callingassertThat(Iterable<E>, AssertFactory<E, ASSERT>)
- Since:
- 2.5.0 / 3.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ASSERT
createAssert(T t)
Creates the custom Assert object for the given element value.
-