Interface AssertableMvcResult

All Superinterfaces:
org.assertj.core.api.AssertProvider<MvcResultAssert>, MvcResult

public interface AssertableMvcResult extends MvcResult, org.assertj.core.api.AssertProvider<MvcResultAssert>
A MvcResult that additionally supports AssertJ style assertions.

Can be in one of two distinct states:

  1. The request processed successfully, and getUnresolvedException() is therefore null.
  2. The request failed unexpectedly with getUnresolvedException() providing more information about the error. Any attempt to access a member of the result fails with an exception.
Since:
6.2
Author:
Stephane Nicoll, Brian Clozel
See Also:
  • Method Details

    • getUnresolvedException

      @Nullable Exception getUnresolvedException()
      Return the exception that was thrown unexpectedly while processing the request, if any.