FasterXML / jackson-dataformat-xml

Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
Apache License 2.0
568 stars 221 forks source link

Add mechanism to run JDK 17 (Records) tests optionally, similar to `jackson-databind` #671

Open cowtowncoder opened 12 hours ago

cowtowncoder commented 12 hours ago

(note: offshoot from #517)

Currently we cannot add test cases for Record-handling, in Jackson 2.x, due to JDK baseline being Java 8 still. But there is a way to do this; used f.ex by jackson-databind. This is relatively simple by:

  1. Adding tests under src/test-jdk17/java/
  2. Using specific Maven profile to conditionally include this test source directory if (and only if) running on JDK 17+

It'd be good to be able to add specific Records-with-XML test cases.

cowtowncoder commented 12 hours ago

cc @JooHyukKim WDYT?

JooHyukKim commented 12 hours ago

Yup, totatlly makes sense. I can spare some time today, to set things up.