Allow passing non-generic HttpMessageConverter
in AssertJ JSON test support
#33131
Labels
in: test
Issues in the test module
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
As a follow-up of #33118, the following classes should be updated to allow providing a
SmartHttpMessageConverter
as an alternative to currentGenericHttpMessageConverter
arrangement in the following classes:org.springframework.test.json.AbstractJsonContentAssert
org.springframework.test.json.AbstractJsonValueAssert
org.springframework.test.json.JsonContent
org.springframework.test.web.servlet.assertj.AbstractMockHttpServletResponseAssert
org.springframework.test.web.servlet.assertj.DefaultMvcTestResult
org.springframework.test.web.servlet.assertj.MockMvcTester
org.springframework.test.json.JsonPathValueAssert
org.springframework.test.web.servlet.assertj.MvcTestResultAssert
FYI we are considering using this contract for the upcoming Jackson 3 support.
End-users may also provide non-smart non-generic
HttpMessageConverter
, so maybe we should just useHttpMessageConverter
arguments +instanceOf
checks to support the 3 variants, check 4555384 for inspiration.The text was updated successfully, but these errors were encountered: