Uses of Class
org.springframework.test.http.MediaTypeAssert
Packages that use MediaTypeAssert
Package
Description
Test support for HTTP concepts.
AssertJ support for MockMvc.
-
Uses of MediaTypeAssert in org.springframework.test.http
Methods in org.springframework.test.http that return MediaTypeAssertModifier 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
Methods in org.springframework.test.web.servlet.assertj that return MediaTypeAssertModifier and TypeMethodDescriptionAbstractHttpServletResponseAssert.contentType()
Return a new assertion object that uses the response's content type as the object to test.