spring-projects / spring-projects/spring-boot
Add an @XmlTest test slice similar to @JsonTest
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
I find @JsonTest very convenient for testing JSON serialization and deserialization. It would be great if we can have the same for XML. So it would load XmlMapperBuilderCustomizer beans and JacksonXmlProperties so the (de)serialization behaves exactly like in the actual application. (Not sure if @JacksonComponent classes should also be loaded?). If possible, having a JacksonXmlTester would make the feature really complete.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the existing @JsonTest slice and its related testing support, then identify the corresponding XML mapper customizer and property components named in the issue. The work is done when an @XmlTest slice provides equivalent XML serialization coverage, with the need for JacksonXmlTester and @JacksonComponent support resolved and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100