Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2017-05-12 15:47:38 +00:00
parent 0b0df6b0f1
commit 0ae56d5a1b

View File

@@ -8143,7 +8143,9 @@ public class ConsumerUtils {
* @author Marcin Grzejszczak
*/
public static ClientDslProperty oldEnough() {
//remove::start[]
return new ClientDslProperty(PatternUtils.oldEnough());
//remove::end[]
}
/**
@@ -8164,7 +8166,9 @@ public class ConsumerUtils {
* producer side value will be equal to {@code marcin}
*/
public static DslProperty anyName() {
//remove::start[]
return new DslProperty<>(PatternUtils.anyName(), "marcin");
//remove::end[]
}
}</code></pre>
</div>
@@ -8298,17 +8302,20 @@ import static com.example.ConsumerUtils.oldEnough
import static com.example.ProducerUtils.ok
Contract.make {
request {
description("""
description("""
Represents a successful scenario of getting a beer
```
given:
client is old enough
when:
he applies for a beer
then:
we'll grant him the beer
```
""")
request {
method 'POST'
url '/check'
body(