Class WebTestClientSupport
java.lang.Object
com.c4_soft.springaddons.security.oauth2.test.webflux.WebTestClientSupport
You may configure in your test properties:
com.c4-soft.springaddons.test.web.default-charsetdefaulted to utf-8com.c4-soft.springaddons.test.web.default-media-typedefaulted to application+json
- Author:
- Jérôme Wacongne <ch4mp@c4-soft.com>
-
Constructor Summary
ConstructorsConstructorDescriptionWebTestClientSupport(WebTestClientProperties webTestClientProperties, org.springframework.test.web.reactive.server.WebTestClient webTestClient, SpringAddonsOidcProperties addonsProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.test.web.reactive.server.WebTestClient.ResponseSpecorg.springframework.test.web.reactive.server.WebTestClient.ResponseSpecorg.springframework.test.web.reactive.server.WebTestClient.ResponseSpecmutateWith(org.springframework.test.web.reactive.server.WebTestClientConfigurer configurer) <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpecpatch(T payload, org.springframework.http.MediaType contentType, Charset charset, String uriTemplate, Object... uriVars) <T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpecpost(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<T> org.springframework.test.web.reactive.server.WebTestClient.ResponseSpecput(T payload, org.springframework.http.MediaType contentType, Charset charset, String uriTemplate, Object... uriVars) setCharset(Charset charset) setCsrf(boolean isCsrf) setMediaType(org.springframework.http.MediaType mediaType)
-
Constructor Details
-
WebTestClientSupport
public WebTestClientSupport(WebTestClientProperties webTestClientProperties, org.springframework.test.web.reactive.server.WebTestClient webTestClient, SpringAddonsOidcProperties addonsProperties)
-
-
Method Details
-
setMediaType
- Parameters:
mediaType- override configured default media-type- Returns:
-
setCharset
- Parameters:
charset- override configured default charset- Returns:
-
get
-
get
-
post
-
post
-
put
-
put
-
patch
-
patch
-
delete
-
mutateWith
public WebTestClientSupport mutateWith(org.springframework.test.web.reactive.server.WebTestClientConfigurer configurer) -
setCsrf
-