fp024 opened a new pull request, #535:
URL: https://github.com/apache/struts-examples/pull/535

   ## Summary
   
   Adds JUnit tests for the `json-customize` example.
   
   ## Motivation
   
   This PR adds a reproducible JUnit test case to the `struts-examples` 
repository to make it easier to verify the behavior of the custom JSON writer 
configuration.
   
   The tests pass with Struts 7.1.1. During an upgrade check to Struts 7.2.1, I 
noticed a possible issue where the custom json writer may not be used as 
expected. This can be reproduced or verified by changing only the Struts 
version to 7.2.1 and running the added tests.
   
   Since the Struts main repository does not have the Issues tab enabled, I am 
submitting this here as a reproducible test case.
   
   ## Notes
   
   The tests use JsonPath to validate the serialized JSON output. The 
`lastLogin` field is validated by date format instead of comparing against a 
fixed value.
   
   Thanks 👍


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to