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:
- The request processed successfully, and
getUnresolvedException()
is thereforenull
. - 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 Summary
Modifier and TypeMethodDescriptionReturn the exception that was thrown unexpectedly while processing the request, if any.Methods inherited from interface org.assertj.core.api.AssertProvider
assertThat
Methods inherited from interface org.springframework.test.web.servlet.MvcResult
getAsyncResult, getAsyncResult, getFlashMap, getHandler, getInterceptors, getModelAndView, getRequest, getResolvedException, getResponse
-
Method Details
-
getUnresolvedException
Return the exception that was thrown unexpectedly while processing the request, if any.
-