Fixed an issue with the matching of the URIs for `actions`
[demos/example-siren] / spring-consumer / src / test / java / de / juplo / demos / pact / ContractTest.java
index 6fa8b5a..b5c41a3 100644 (file)
@@ -68,13 +68,13 @@ public class ContractTest
               {
                 object.stringValue("name","update");
                 object.stringValue("method", "PUT");
-                object.matchUrl2("href", "orders", Matchers.regexp("\\d+", "1234").getValue());
+                object.matchUrl2("href", "orders", Matchers.regexp("\\d+", "1234").getMatcher());
               });
               actionsArray.object(object ->
               {
                 object.stringValue("name","delete");
                 object.stringValue("method", "DELETE");
-                object.matchUrl2("href", "orders", Matchers.regexp("\\d+", "1234").getValue());
+                object.matchUrl2("href", "orders", Matchers.regexp("\\d+", "1234").getMatcher());
               });
             });
             entities.array("class", classArray ->