New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add xml support #855
Add xml support #855
Conversation
# Conflicts: # spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/internal/BodyMatchers.groovy # spring-cloud-contract-verifier/src/test/groovy/org/springframework/cloud/contract/verifier/converter/YamlContractConverterSpec.groovy
from xml while generating stubs. Fix and adjust tests to recent changes.
# Conflicts: # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/builder/MethodBodyBuilder.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/converter/ContractsToYaml.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/dsl/wiremock/WireMockRequestStubStrategy.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/util/JsonToJsonPathsConverter.groovy # spring-cloud-contract-verifier/src/test/groovy/org/springframework/cloud/contract/verifier/converter/YamlContractConverterSpec.groovy
# Conflicts: # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/builder/MethodBodyBuilder.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/converter/ContractsToYaml.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/dsl/wiremock/WireMockRequestStubStrategy.groovy # spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/util/JsonToJsonPathsConverter.groovy # spring-cloud-contract-verifier/src/test/groovy/org/springframework/cloud/contract/verifier/converter/YamlContractConverterSpec.groovy
…andling XML lists in assertions.
…ons. Move XML-assert lib content to project sources. Add tests.
matchers processing.
| } | ||
|
|
||
| List<BodyMatcher> jsonPathMatchers() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave this method, deprecate it and delegate to the new one
.../main/groovy/org/springframework/cloud/contract/verifier/builder/BodyMethodGeneration.groovy
Show resolved
Hide resolved
| * @author Olga Maciaszek-Sharma | ||
| * @since 2.1.0 | ||
| */ | ||
| trait ClassVerifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CompileStatic + a description of what it is used for?
| * @param path - the xPath expression to retrieve the value with | ||
| * @return {@link String} value of the XML node | ||
| */ | ||
| public static String valueFromXPath(Document parsedXml, String path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add @since to the public methods
Codecov Report
@@ Coverage Diff @@
## master #855 +/- ##
===========================================
+ Coverage 49.43% 51.04% +1.6%
- Complexity 2189 2316 +127
===========================================
Files 271 286 +15
Lines 10649 11134 +485
Branches 1723 1763 +40
===========================================
+ Hits 5264 5683 +419
- Misses 4542 4584 +42
- Partials 843 867 +24
Continue to review full report at Codecov.
|
Fixes gh-322