T - the type to use for the cast.ASSERT - the type of the resulting Assert.public class InstanceOfAssertFactory<T,ASSERT extends AbstractAssert<?,?>> extends Object implements AssertFactory<Object,ASSERT>
AssertFactory decorator which casts the input value to the given type before invoking the decorated AssertFactory.| Constructor and Description |
|---|
InstanceOfAssertFactory(Class<T> type,
AssertFactory<T,ASSERT> assertFactory)
Instantiates a new
InstanceOfAssertFactory. |
| Modifier and Type | Method and Description |
|---|---|
ASSERT |
createAssert(Object value)
Creates the custom Assert object for the given element value.
|
String |
toString() |
public InstanceOfAssertFactory(Class<T> type, AssertFactory<T,ASSERT> assertFactory)
InstanceOfAssertFactory.type - the Class instance of the given type.assertFactory - the AssertFactory to decorate.public ASSERT createAssert(Object value)
assertThat(t)createAssert in interface AssertFactory<Object,ASSERT extends AbstractAssert<?,?>>value - the type to convert to an Assert objectCopyright © 2025. All rights reserved.