| org.springframework.test.web.AbstractModelAndViewTests
Method Summary | |
protected Object | assertAndReturnModelAttributeOfType(ModelAndView mav, Object key, Class type) Checks whether the given model key exists and checks it type, based
on the given type. | protected void | assertCompareListModelAttribute(ModelAndView mav, Object key, List assertionList) Compare each individual entry in a list, not sorting the lists first. | protected void | assertModelAttributeAvailable(ModelAndView mav, Object key) Assert whether or not a model attribute is available. | protected void | assertModelAttributeValue(ModelAndView mav, Object key, Object value) Compare a given Object to the value from the model bound under the given key. | protected void | assertModelAttributeValues(ModelAndView mav, Map assertionModel) | protected void | assertSortAndCompareListModelAttribute(ModelAndView mav, Object key, List assertionList, Comparator comp) Compare each individual entry in a list after having sorted both lists
(optionally using a comparator).
Parameters: comp - the comparator to use. | protected void | assertViewName(ModelAndView mav, String name) Check to see if the view name in the ModelAndView matches the given String. |
assertAndReturnModelAttributeOfType | protected Object assertAndReturnModelAttributeOfType(ModelAndView mav, Object key, Class type)(Code) | | Checks whether the given model key exists and checks it type, based
on the given type. If the model entry exists and the type matches,
the given model value is returned.
|
assertCompareListModelAttribute | protected void assertCompareListModelAttribute(ModelAndView mav, Object key, List assertionList)(Code) | | Compare each individual entry in a list, not sorting the lists first.
|
assertModelAttributeAvailable | protected void assertModelAttributeAvailable(ModelAndView mav, Object key)(Code) | | Assert whether or not a model attribute is available.
|
assertModelAttributeValue | protected void assertModelAttributeValue(ModelAndView mav, Object key, Object value)(Code) | | Compare a given Object to the value from the model bound under the given key.
|
assertModelAttributeValues | protected void assertModelAttributeValues(ModelAndView mav, Map assertionModel)(Code) | | Inspect the given model to see if all elements in the model appear and are equal
|
assertSortAndCompareListModelAttribute | protected void assertSortAndCompareListModelAttribute(ModelAndView mav, Object key, List assertionList, Comparator comp)(Code) | | Compare each individual entry in a list after having sorted both lists
(optionally using a comparator).
Parameters: comp - the comparator to use. If not specifying the comparator,both lists will be sorted not using any comparator. |
assertViewName | protected void assertViewName(ModelAndView mav, String name)(Code) | | Check to see if the view name in the ModelAndView matches the given String.
|
|
|