Sync docs from master to gh-pages
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user