Response Testing
Learn Response Testing (Spring MVC Testing, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Response testing asserts the result of perform with andExpect and matchers for status, headers, content type and body. Common matchers : status() , header() , content() , jsonPath() , view() , model() and redirectedUrl() . jsonPath reads values from the JSON body, for example jsonPath("$.items.length()").value(3) .