当我get
用接口请求RequestSpecification
并且我想返回一个参数化List<T>
时,我必须在方法中做什么.as()
???是大胆的亮点!也许我必须指定列表的实现之一?但我需要特定的参数化List
!
List<> response = given().parameter(x,x)
.expect()
.statuscode(200)
.when()
.get("some kind of GET")
**.as(List<>.class)**