Closed michaeljamieson10 closed 2 years ago
Fixes problem for me, testImplementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.0"
testImplementation (group: 'io.specto', name: 'hoverfly-java', version: '0.14.1') { exclude group: "com.fasterxml.jackson.dataformat", module: "jackson-dataformat-xml" }
did you mean 2.9.0
works, but not 2.11.4
?
Yes 2.9.0 works
Can you check this out? https://github.com/tommysitu/springboot-demo I can't reproduce the issue. It's likely that we need to upgrade the jackson library rather than downgrade.
Description of the bug
Hoverfly will not run after upgrading to org.springframework.boot 2.5.5.
Test suite will only run after excluding the dependency jackson-dataformat-xml from hoverfly, but test with hoverfly will fail.
After upgrading to org.springframework.boot 2.5.5 we receive the following error:
Although the dependency hoverfly was not detected in the above error
excluding jackson-dataformat-xml from hoverfly(image below)
fixes the issue in the first image and tests ran as intended.
but this excluding of jackson-dataformat-xml from hoverfly will cause hoverfly tests to fail with
Steps to reproduce the issue
put the following in build.gradle
Ran with junit 5 junitplatform runner like in following image:
Observed result
BEFORE excluding the dependency from Hoverfly "com.fasterxml.jackson.dataformat":
Observed result
AFTER excluding the dependency from Hoverfly "com.fasterxml.jackson.dataformat":
Expected result
The ability for hoverfly test to run with org.springframework.boot 2.5.5 without excluding dependency.
Additional relevant information
If not indicated above:
When looking at hoverfly dependency using ./gradlew dependencies