Java Code Examples for io.restassured.builder.RequestSpecBuilder#setAccept()

The following examples show how to use io.restassured.builder.RequestSpecBuilder#setAccept() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestEnumParametersOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 2
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public UpdatePetWithFormOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 3
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public GetOrderByIdOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 4
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public GetPetByIdOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 5
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FindPetsByTagsOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 6
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public AddPetOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 7
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public DeletePetOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 8
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestBodyWithFileSchemaOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 9
Source File: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public UpdateUserOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 10
Source File: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public LogoutUserOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 11
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestClientModelOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 12
Source File: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public CreateUsersWithListInputOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 13
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestInlineAdditionalPropertiesOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 14
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FakeOuterBooleanSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 15
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public UploadFileOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("multipart/form-data");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 16
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestQueryParameterCollectionFormatOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 17
Source File: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public DeletePetOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 18
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public PlaceOrderOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 19
Source File: StoreApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public GetOrderByIdOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 20
Source File: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public GetUserByNameOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}