object.stringType("method", "PUT");
object.matchUrl2("href", Matchers.regexp("\\d+", "1234").getValue());
});
+ actions.object(object ->
+ {
+ object.stringType("name","delete");
+ object.stringType("method", "DELETE");
+ object.matchUrl2("href", Matchers.regexp("\\d+", "1234").getValue());
+ });
});
});
}).build())
"href": "http://localhost:8080/1234",
"method": "PUT",
"name": "update"
+ },
+ {
+ "href": "http://localhost:8080/1234",
+ "method": "DELETE",
+ "name": "delete"
}
],
"entities": [
"example": "http://localhost:8080/1234",
"regex": ".*\\/(\\Q1234\\E)$",
"type": "MockServerURL"
+ },
+ "$[1].href": {
+ "example": "http://localhost:8080/1234",
+ "regex": ".*\\/(\\Q1234\\E)$",
+ "type": "MockServerURL"
}
}
},
]
}
}
+ },
+ {
+ "generators": {
+ "$.href": {
+ "example": "http://localhost:8080/1234",
+ "regex": ".*\\/(\\Q1234\\E)$",
+ "type": "MockServerURL"
+ }
+ },
+ "index": 1,
+ "rules": {
+ "$.href": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "regex",
+ "regex": ".*\\/(\\Q1234\\E)$"
+ }
+ ]
+ },
+ "$.method": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type"
+ }
+ ]
+ },
+ "$.name": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type"
+ }
+ ]
+ }
+ }
}
]
}