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 anAssertclass for a given type. This factory method typically wraps a call toassertThat(t)to map to the concrete assert typeASSERTfor the elementT.This interface is typically used by navigation assertions on iterable types like
AbstractIterableAssertwhen 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 ASSERTcreateAssert(T t)Creates the custom Assert object for the given element value.
-