[JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests custom… (#7556)

* reqSpec() method has been added into api.mustache for requests customisation (group operations)

* add - reqSpec() has been added to samples
This commit is contained in:
Victor Orlovsky
2018-02-08 09:51:23 +03:00
committed by William Cheng
parent ee561fcd63
commit 62a930223f
7 changed files with 56 additions and 0 deletions

View File

@@ -73,6 +73,14 @@ public class {{classname}} {
return this;
}
/**
* Customise request specification
*/
public {{classname}} reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}
{{#operations}}
{{#operation}}
/**