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

index 0e43145..65ff03b 100644 (file)
@@ -36,7 +36,7 @@ public class ContractTest
               {
                 actions.object(object ->
                 {
-                  object.stringType("foo");
+                  object.stringType("name","update");
                 });
               });
             }).build())
index 1b63847..d1c58a6 100644 (file)
         "body": {
           "actions": [
             {
-              "foo": "string"
+              "name": "update"
             }
           ]
         },
-        "generators": {
-          "body": {
-            "$[0].foo": {
-              "size": 20,
-              "type": "RandomString"
-            }
-          }
-        },
         "headers": {
           "Content-Type": "application/vnd.siren+json"
         },
                   "variants": [
                     {
                       "generators": {
-                        "$.foo": {
-                          "size": 20,
-                          "type": "RandomString"
-                        }
+
                       },
                       "index": 0,
                       "rules": {
-                        "$.foo": {
+                        "$.name": {
                           "combine": "AND",
                           "matchers": [
                             {