WIP
authorKai Moritz <kai@juplo.de>
Sat, 21 May 2022 15:40:30 +0000 (17:40 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 21 May 2022 15:40:30 +0000 (17:40 +0200)
spring-consumer/src/test/java/de/juplo/demos/pact/ContractTest.java
spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json

index 65ff03b..9486001 100644 (file)
@@ -37,6 +37,7 @@ public class ContractTest
                 actions.object(object ->
                 {
                   object.stringType("name","update");
+                  object.stringType("method", "PUT");
                 });
               });
             }).build())
index d1c58a6..9356980 100644 (file)
@@ -13,6 +13,7 @@
         "body": {
           "actions": [
             {
+              "method": "PUT",
               "name": "update"
             }
           ]
                       },
                       "index": 0,
                       "rules": {
+                        "$.method": {
+                          "combine": "AND",
+                          "matchers": [
+                            {
+                              "match": "type"
+                            }
+                          ]
+                        },
                         "$.name": {
                           "combine": "AND",
                           "matchers": [