{
object.stringType("name","update");
object.stringType("method", "PUT");
- object.matchUrl2("href", Matchers.regexp("\\d+", "1234"));
+ object.matchUrl2("href", Matchers.regexp("\\d+", "1234").getValue());
});
});
});
"body": {
"actions": [
{
- "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
+ "href": "http://localhost:8080/1234",
"method": "PUT",
"name": "update"
}
"generators": {
"body": {
"$[0].href": {
- "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
- "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$",
+ "example": "http://localhost:8080/1234",
+ "regex": ".*\\/(\\Q1234\\E)$",
"type": "MockServerURL"
}
}
{
"generators": {
"$.href": {
- "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
- "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$",
+ "example": "http://localhost:8080/1234",
+ "regex": ".*\\/(\\Q1234\\E)$",
"type": "MockServerURL"
}
},
"matchers": [
{
"match": "regex",
- "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$"
+ "regex": ".*\\/(\\Q1234\\E)$"
}
]
},