# Uses of Class
org.springframework.test.web.servlet.assertj.ModelAssert

Packages that use ModelAssert
Package
Description
org.springframework.test.web.servlet.assertj
AssertJ support for MockMvc.

## Uses of ModelAssert in org.springframework.test.web.servlet.assertj

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