Interface ObjectAssertProxy


public interface ObjectAssertProxy
Proxy to access package-protected methods in org.assertj.core.api.
Author:
Guillermo Calvo
  • Method Details

    • assertWithAssertionState

      static <T> ObjectAssert<T> assertWithAssertionState(AbstractAssert<?,?> state, T actual)
      Assert with assertion state.

      Invokes Assertions.assertThatObject(Object) and then AbstractObjectAssert.withAssertionState(AbstractAssert).

      Type Parameters:
      T - the generic type of the assert.
      Parameters:
      state - the assertion state.
      actual - the actual value.
      Returns:
      the created assertion object with the assertion state.