REST-assured with Spock and Groovy

I'm new to Spock and would like to write tests for a REST interface with Spock and REST-assured. Knowing REST-assurend combined with Java, I would like how to use REST-assurend with Spock. Can anyone provide an example for this?

+3


source to share


1 answer


REST-Assured DSL seems to contradict Spock DSL. Potential solutions are adapting the former (for example, using Groovy extension methods) or including all the code in one block expect:

.



+3


source







All Articles