spring-framework / org.springframework.test.web / ModelAndViewAssert / assertModelAttributeAvailable

assertModelAttributeAvailable

open static fun assertModelAttributeAvailable(mav: ModelAndView, modelName: String): Unit

Assert whether or not a model attribute is available.

Parameters

mav - ModelAndView to test against (never null)

modelName - name of the object to add to the model (never null)