Interface MvcTestResult

All Superinterfaces:
org.assertj.core.api.AssertProvider<MvcTestResultAssert>

public interface MvcTestResult extends org.assertj.core.api.AssertProvider<MvcTestResultAssert>
Provides the result of an executed request using MockMvcTester that is meant to be used with assertThat.

Can be in one of two distinct states:

  1. The request processed successfully, even if it failed with an exception that has been resolved. The result is available, and getUnresolvedException() will return null.
  2. The request failed unexpectedly. getUnresolvedException() provides more information about the error, and any attempt to access the result will fail with an exception.
Since:
6.2
Author:
Stephane Nicoll, Brian Clozel
See Also: