Problem with auto-generated values from regex inside the respose body

added missing `$()` method for consumer and producer side only

fixes #94
This commit is contained in:
Marcin Grzejszczak
2016-10-04 15:12:55 +02:00
parent 09cf63a600
commit 8e68dcedd4
4 changed files with 40 additions and 1 deletions

View File

@@ -182,6 +182,10 @@ class Request extends Common {
return new DslProperty(client.clientValue, clientValue)
}
DslProperty $(ClientDslProperty client) {
return value(client)
}
@Override
DslProperty value(ClientDslProperty client, ServerDslProperty server) {
if (server.clientValue instanceof Pattern) {

View File

@@ -95,6 +95,10 @@ class Response extends Common {
return new DslProperty(value, server.serverValue)
}
DslProperty $(ServerDslProperty server) {
return value(server)
}
@Override
DslProperty value(ClientDslProperty client, ServerDslProperty server) {
if (client.clientValue instanceof Pattern) {