无法使用RestAssured发送发帖请求

时间:2019-03-18 05:21:00

标签: json groovy rest-assured

使用RestAssured发送发帖请求时,我遇到以下错误。

groovy.lang.MissingMethodException: No signature of method: static io.restassured.internal.http.URIBuilder.encode() is applicable for argument types: (String, String) values: [prweb, UTF-8]
Possible solutions: hashCode()

下面是引发错误的行

request.header("Authorization", "Basic " + Base64.getEncoder().encodeToString("username" + ":" + "password").getBytes()));
request.post(path);

有人可以建议。谢谢。

0 个答案:

没有答案