| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.http.HttpMethod |
method |
protected LoadTestReporter |
reporter |
protected org.springframework.web.client.RestTemplate |
restTemplate |
protected String |
url |
| Constructor and Description |
|---|
LoadTestRunner(LoadTestReporter reporter,
org.springframework.web.client.RestTemplate restTemplate,
String url,
org.springframework.http.HttpMethod method) |
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
protected abstract org.springframework.http.ResponseEntity<T> |
execute(V value,
org.springframework.web.client.RestTemplate restTemplate)
Inner method doing the calls eacht time.
|
protected abstract V |
prepare() |
protected final LoadTestReporter reporter
protected final org.springframework.web.client.RestTemplate restTemplate
protected final String url
protected final org.springframework.http.HttpMethod method
public LoadTestRunner(LoadTestReporter reporter, org.springframework.web.client.RestTemplate restTemplate, String url, org.springframework.http.HttpMethod method)
protected abstract V prepare()
protected abstract org.springframework.http.ResponseEntity<T> execute(V value, org.springframework.web.client.RestTemplate restTemplate) throws Exception
value - the payload to sentrestTemplate - the REST template to usenull to indicate an error occurredException - on any real error, will be counted as error too, use
RestClientResponseException for specific errorsCopyright © 2018–2023. All rights reserved.