REST Assured 学习笔记

REST Assured

REST Assured 3.2.0

REST Assured

https://github.com/rest-assured/rest-assured

REST Assured 3.2.0 API

pom.xml

1
2
3
4
5
6
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.2.0</version>
<scope>test</scope>
</dependency>

导入包

1
2
3
4
5
import static io.restassured.RestAssured.*
import static io.restassured.matcher.RestAssuredMatchers.*
import static org.hamcrest.Matchers.*
import static io.restassured.module.jsv.JsonSchemaValidator.*
import static io.restassured.module.mockmvc.RestAssuredMockMvc.*

参考

Testing RESTful Services in Java: Best Practices

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. REST Assured
    1. 1.1. 参考
,