本文整理汇总了Java中com.jayway.restassured.specification.RequestSpecification.get方法的典型用法代码示例。如果您正苦于以下问题:Java RequestSpecification.get方法的具体用法?Java RequestSpecification.get怎么用?Java RequestSpecification.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jayway.restassured.specification.RequestSpecification
的用法示例。
在下文中一共展示了RequestSpecification.get方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: send
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public static Response send(RequestSpecification request, String methodPath, HttpMethodType methodType)
{
Response response = null;
SystemProxy.setupProxy();
switch (methodType)
{
case HEAD:
response = request.head(methodPath);
break;
case GET:
response = request.get(methodPath);
break;
case PUT:
response = request.put(methodPath);
break;
case POST:
response = request.post(methodPath);
break;
case DELETE:
response = request.delete(methodPath);
break;
case PATCH:
response = request.patch(methodPath);
break;
default:
throw new RuntimeException("MethodType is not specified for the API method: " + methodPath);
}
return response;
}
示例2: history
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public void history(RequestSpecification request, ItemId itemId)
{
request.get(getResolvedEntityUri() + "/history", getIdParams(itemId));
}
示例3: file
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public Response file(RequestSpecification request, ItemId itemId, String filePath)
{
return request.get(getResolvedEntityUri() + "/file/" + filePath, itemId.getUuid(), itemId.getVersion());
}
示例4: getResponse
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public Response getResponse(RequestSpecification request, ID id)
{
return request.get(getResolvedEntityUri(), getIdParams(id));
}
示例5: get
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public Response get(RequestSpecification request, String stagingUrl, String path)
{
return request.get(getFileUrl(stagingUrl, path));
}
示例6: listFail
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public Response listFail(RequestSpecification request)
{
return request.get(getResolvedPath());
}
示例7: listAclsFail
import com.jayway.restassured.specification.RequestSpecification; //导入方法依赖的package包/类
public Response listAclsFail(RequestSpecification request)
{
return request.get(getResolvedAclPath());
}