TestRestTemplate
Create a new TestRestTemplate instance.
Since
1.4.1
Parameters
restTemplateBuilder
builder used to configure underlying RestTemplate
Create a new TestRestTemplate instance.
Parameters
httpClientOptions
client options to use if the Apache HTTP Client is used
constructor(username: String, password: String, httpClientOptions: Array<TestRestTemplate.HttpClientOption>)
Create a new TestRestTemplate instance with the specified credentials.
Parameters
username
the username to use (or null
)
password
the password (or null
)
httpClientOptions
client options to use if the Apache HTTP Client is used
constructor(builder: RestTemplateBuilder, username: String, password: String, httpClientOptions: Array<TestRestTemplate.HttpClientOption>)
Create a new TestRestTemplate instance with the specified credentials.
Since
2.0.0
Parameters
builder
builder used to configure underlying RestTemplate
username
the username to use (or null
)
password
the password (or null
)
httpClientOptions
client options to use if the Apache HTTP Client is used