Top Constructors Methods
org.assertj.core.api

public Class ObjectAssertFactory<T>

extends Object
implements AssertFactory<T, ObjectAssert<T>>
Class Inheritance
All Implemented Interfaces
org.assertj.core.api.AssertFactory
Annotations
@Deprecated

Deprecated

Use Assertions#assertThat(Object) instead.

Since
2.5.0 / 3.5.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectAssert<T>
createAssert(T
the input value for the Assert instance
actual
)

Implements org.assertj.core.api.AssertFactory.createAssert.

Creates the custom Assert instance for the given value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ObjectAssertFactoryback to summary
public ObjectAssertFactory()

Method Detail

createAssertback to summary
public ObjectAssert<T> createAssert(T actual)

Implements org.assertj.core.api.AssertFactory.createAssert.

Doc from org.assertj.core.api.AssertFactory.createAssert.

Creates the custom Assert instance for the given value.

Typically, this will just invoke assertThat(actual).

Parameters
actual:T

the input value for the Assert instance

Returns:ObjectAssert<T>

the custom Assert instance for the given value

Annotations
@Override