【问题标题】:Spring Cloud Contract not checking consumer/provider matching or notSpring Cloud Contract 不检查消费者/提供者匹配与否
【发布时间】:2019-12-06 03:33:38
【问题描述】:

我正在使用 spring-boot-gradle-plugin 2.1.9.RELEASE、spring-cloud-contract-gradle-plugin 2.1.3.RELEASE 和 spring-cloud-dependencies Greenwich.SR3

对于消费者和提供者不匹配的合同,例如

created_at: $(consumer("NOT A DATE"), producer(anyDate()))

之前预期的错误如下:

Exception in thread "main" Assertion failed: 

assert testSide ==~ Pattern.compile(stubSide.optionalPattern())

但现在我注意到相同的合约代码不会像预期的那样出错。它成功编译和生成单元测试和存根,而无需检查消费者和提供者端是否相互匹配。

我尝试使用一些旧版本的验证器和 gradle 插件,但仍然编译成功。

【问题讨论】:

    标签: java spring spring-cloud-contract


    【解决方案1】:
    猜你喜欢
    • 2019-12-10
    • 1970-01-01
    • 1970-01-01
    • 2018-11-05
    • 2021-03-17
    • 1970-01-01
    • 2021-12-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多