【发布时间】:2018-06-01 08:13:14
【问题描述】:
我的微服务与之交互的第三方服务返回内容类型为 application/JavaScript;charset=UTF-8 的响应。因此,pact json 的响应正文为字符串,匹配规则的正文为空。
使用以下契约依赖:
testIntegrationCompile('au.com.dius:pact-jvm-consumer-junit_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-provider-junit_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-provider-spring_2.12:3.5.11')
testIntegrationCompile('au.com.dius:pact-jvm-consumer-java8_2.12:3.5.11')
【问题讨论】:
标签: spring testing integration-testing microservices pact