spring-projects / spring-projects/spring-boot

Add an @XmlTest test slice similar to @JsonTest

Open
#49,872 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.