Skip to content

Add unit tests for XmlAdapterUtils#712

Open
vasiliy-mikhailov wants to merge 1 commit into
highsource:masterfrom
vasiliy-mikhailov:add-XmlAdapterUtils-tests
Open

Add unit tests for XmlAdapterUtils#712
vasiliy-mikhailov wants to merge 1 commit into
highsource:masterfrom
vasiliy-mikhailov:add-XmlAdapterUtils-tests

Conversation

@vasiliy-mikhailov

Copy link
Copy Markdown

Adds 24 JUnit 5 tests for org.jvnet.hyperjaxb3.xml.bind.annotation.adapters.XmlAdapterUtils in the hyperjaxb3-ejb-runtime module, covering round-trip marshall/unmarshall for the QName, Duration, and XMLGregorianCalendar (date/time/dateTime) adapters, converter direct/inverse behaviour, and the isJAXBElement / marshallJAXBElement / unmarshallJAXBElement methods including null, non-matching name/type, and assignable-type edge cases.

metric before after
mutation score 14% 90%
test methods added n/a 24

The additions are append-only (a new test class, no existing test modified) and pass against the current code.


How this was produced

This PR was generated with an AI-assisted pipeline built around mutation testing (PIT). The pipeline mutates the target class (flipping conditions and changing boundary/edge cases) and runs the existing tests against each mutant. Where a mutant survives (the existing tests do not catch that edge case), it writes a focused test for that case and reruns PIT to confirm the new test actually kills that specific mutant. So every added test is verified to catch a concrete edge case the suite missed before, rather than being speculative or redundant. The change is additive only (no production code modified), and the module builds green under its CI JDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant