Uses of Class
org.springframework.test.http.MediaTypeAssert
Package
Description
Test support for HTTP concepts.
AssertJ support for MockMvc.
-
Uses of MediaTypeAssert in org.springframework.test.http
Modifier and TypeMethodDescriptionMediaTypeAssert.isCompatibleWith
(String mediaType) Verify that the actual media type is compatible with the given one.MediaTypeAssert.isCompatibleWith
(MediaType mediaType) Verify that the actual media type is compatible with the given one.Verify that the actual media type is equal to the given string representation.MediaTypeAssert.isNotEqualTo
(String mediaType) Verify that the actual media type is not equal to the given string representation. -
Uses of MediaTypeAssert in org.springframework.test.web.servlet.assertj
Modifier and TypeMethodDescriptionAbstractHttpServletResponseAssert.contentType()
Return a new assertion object that uses the response's content type as the object to test.