com.github.tomakehurst.wiremock.matching.EqualToXmlPattern has the enablePlaceholders flag to signal if the XmlUnit placeholders must be taken into account when validating the xml.
Tasks
Implement an inspection that can validate and report the following:
If the XML string contains an XmlUnit placeholder but the enablePlaceholders flag is missing or false.
If the XML string doesn't contain an XmlUnit placeholder but the enablePlaceholders flag is set to true.
The validation should happen in
[x] the request.bodyPatterns.equalToXml JSON property
Summary
com.github.tomakehurst.wiremock.matching.EqualToXmlPattern
has theenablePlaceholders
flag to signal if the XmlUnit placeholders must be taken into account when validating the xml.Tasks
enablePlaceholders
flag is missing or false.enablePlaceholders
flag is set to true.request.bodyPatterns.equalToXml
JSON propertyWireMock#equalToXml(java.lang.String, boolean)