Uses of Class
org.springframework.test.web.servlet.assertj.ModelAssert
-
Uses of ModelAssert in org.springframework.test.web.servlet.assertj
Modifier and TypeMethodDescriptionModelAssert.doesNotHaveAttributeErrors
(String... names) Verify that the actual model contains the attributes with the givennames
, and that none of these attributes has an error.ModelAssert.doesNotHaveErrors()
Verify that the actual model does not have any errors.ModelAssert.hasAttributeErrors
(String... names) Verify that the actual model contains the attributes with the givennames
, and that each of these attributes has each at least one error.ModelAssert.hasErrors()
Verify that the actual model has at least one error.MvcTestResultAssert.model()
Verify that aModelAndView
is available and return a new assertion object that uses the model as the object to test.