@TestComponent @Scope(value="prototype") public class WebTestClientSupport extends Object
com.c4-soft.springaddons.test.web.default-charset defaulted to utf-8
com.c4-soft.springaddons.test.web.default-media-type defaulted to application+json
| Modifier and Type | Class and Description |
|---|---|
static class |
WebTestClientSupport.WebTestClientProperties |
| Constructor and Description |
|---|
WebTestClientSupport(WebTestClientSupport.WebTestClientProperties webTestClientProperties,
org.springframework.test.web.reactive.server.WebTestClient webTestClient) |
| Modifier and Type | Method and Description |
|---|---|
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
delete(String uriTemplate,
Object... uriVars) |
org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
get(org.springframework.http.MediaType accept,
String uriTemplate,
Object... uriVars) |
org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
get(String uriTemplate,
Object... uriVars) |
WebTestClientSupport |
mutateWith(org.springframework.test.web.reactive.server.WebTestClientConfigurer configurer) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
patch(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
String uriTemplate,
Object... uriVars) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
patch(T payload,
String uriTemplate,
Object... uriVars) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
post(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
org.springframework.http.MediaType accept,
String uriTemplate,
Object... uriVars) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
post(T payload,
String uriTemplate,
Object... uriVars) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
put(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
String uriTemplate,
Object... uriVars) |
<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec |
put(T payload,
String uriTemplate,
Object... uriVars) |
WebTestClientSupport |
setCharset(Charset charset) |
WebTestClientSupport |
setMediaType(org.springframework.http.MediaType mediaType) |
@Autowired public WebTestClientSupport(WebTestClientSupport.WebTestClientProperties webTestClientProperties, org.springframework.test.web.reactive.server.WebTestClient webTestClient)
public WebTestClientSupport setMediaType(org.springframework.http.MediaType mediaType)
mediaType - override configured default media-typepublic WebTestClientSupport setCharset(Charset charset)
charset - override configured default charsetpublic org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec get(org.springframework.http.MediaType accept,
String uriTemplate,
Object... uriVars)
public org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec get(String uriTemplate, Object... uriVars)
public <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec post(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
org.springframework.http.MediaType accept,
String uriTemplate,
Object... uriVars)
public <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec post(T payload,
String uriTemplate,
Object... uriVars)
public <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec put(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
String uriTemplate,
Object... uriVars)
public <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec put(T payload,
String uriTemplate,
Object... uriVars)
throws Exception
Exceptionpublic <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec patch(T payload,
org.springframework.http.MediaType contentType,
Charset charset,
String uriTemplate,
Object... uriVars)
public <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec patch(T payload,
String uriTemplate,
Object... uriVars)
throws Exception
Exceptionpublic <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec delete(String uriTemplate, Object... uriVars) throws Exception
Exceptionpublic WebTestClientSupport mutateWith(org.springframework.test.web.reactive.server.WebTestClientConfigurer configurer)
Copyright © 2022. All rights reserved.