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

The following examples show how to use io.restassured.builder.RequestSpecBuilder#setContentType() . 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: PetApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public UploadFileWithRequiredFileOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("multipart/form-data");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 2
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 3
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 4
Source File: FakeClassnameTags123Api.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestClassnameOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 5
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FakeOuterStringSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 6
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FakeOuterNumberSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 7
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FakeOuterCompositeSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    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 FakeOuterBooleanSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 9
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public FakeOuterStringSerializeOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("*/*");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 10
Source File: FakeClassnameTags123Api.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestClassnameOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/json");
    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 TestEnumParametersOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 12
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestEndpointParametersOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    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: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public CreateUsersWithArrayInputOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("application/json");
    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 UploadFileWithRequiredFileOper(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 TestEnumParametersOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 17
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 18
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public CreateXmlItemOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/xml");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 19
Source File: UserApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public CreateUserOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("*/*");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}
 
Example 20
Source File: FakeApi.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
public TestJsonFormDataOper(RequestSpecBuilder reqSpec) {
    this.reqSpec = reqSpec;
    reqSpec.setContentType("application/x-www-form-urlencoded");
    reqSpec.setAccept("application/json");
    this.respSpec = new ResponseSpecBuilder();
}