Remove deprecated and fix wrong javadoc on bodyMatchers - they replaced testMatchers and are not deprecated (#1306)
This commit is contained in:
committed by
Marcin Grzejszczak
parent
22779b6eb8
commit
4872c9a14f
@@ -314,10 +314,7 @@ public class OutputMessage extends Common
|
||||
/**
|
||||
* The stub matchers part of the contract.
|
||||
* @param consumer function to manipulate the body matchers
|
||||
* @deprecated Deprecated in favor of bodyMatchers to support other future
|
||||
* bodyMatchers too
|
||||
*/
|
||||
@Deprecated
|
||||
public void bodyMatchers(Consumer<ResponseBodyMatchers> consumer) {
|
||||
this.bodyMatchers = new ResponseBodyMatchers();
|
||||
consumer.accept(this.bodyMatchers);
|
||||
@@ -348,10 +345,7 @@ public class OutputMessage extends Common
|
||||
/**
|
||||
* The stub matchers part of the contract.
|
||||
* @param consumer function to manipulate the body matchers
|
||||
* @deprecated Deprecated in favor of bodyMatchers to support other future
|
||||
* bodyMatchers too
|
||||
*/
|
||||
@Deprecated
|
||||
public void bodyMatchers(@DelegatesTo(ResponseBodyMatchers.class) Closure consumer) {
|
||||
this.bodyMatchers = new ResponseBodyMatchers();
|
||||
consumer.setDelegate(this.bodyMatchers);
|
||||
|
||||
Reference in New Issue
Block a user