Interface ObjectAssertProxy


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

    Static Methods 
    Modifier and Type Method Description
    static <T> org.assertj.core.api.ObjectAssert<T> assertWithAssertionState​(org.assertj.core.api.AbstractAssert<?,​?> state, T actual)
    Assert with assertion state.
  • Method Details

    • assertWithAssertionState

      static <T> org.assertj.core.api.ObjectAssert<T> assertWithAssertionState​(org.assertj.core.api.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.