我希望使用提供者的合同文件来运行针对使用者的测试。我有过
{
"provider": {
"name": "Provider"
},
"consumer": {
"name": "Consumer"
},
"interactions": [
{
"description": "Get data",
"request": {
"method": "Get",
"path": "/data/1"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"message": ""
}
},
"providerState": "state"
}
],
"metadata": {
"pact-specification": {
"version": "2.0.0"
},
"pact-jvm": {
"version": "3.5.6"
}
}并希望使用它生成pact模拟服务器,如:
RequestResponsePact pact = new RequestResponsePact(mockServerDescriptionString);有可能这样做吗?
https://stackoverflow.com/questions/46789473
复制相似问题