Browse Source

Restore section id's in RestTestClient docs

Recent commit a23c37 changed those due to a change in the structure,
but there is no need, and it is better to not break existing links.

See gh-35701
pull/35768/head
rstoyanchev 1 month ago
parent
commit
3b0cc2821f
  1. 6
      framework-docs/modules/ROOT/pages/testing/resttestclient.adoc

6
framework-docs/modules/ROOT/pages/testing/resttestclient.adoc

@ -250,7 +250,7 @@ Kotlin:: @@ -250,7 +250,7 @@ Kotlin::
You can then choose to decode the response body through one of the following:
* `expectBody(Class<T>)`: Decode to single object.
* `expectBody()`: Decode to `byte[]` for xref:testing/resttestclient.adoc#resttestclient-workflow-json[JSON Content] or an empty body.
* `expectBody()`: Decode to `byte[]` for xref:testing/resttestclient.adoc#resttestclient-json[JSON Content] or an empty body.
If the built-in assertions are insufficient, you can consume the object instead and
@ -317,7 +317,7 @@ that accept {spring-framework-api}/core/ParameterizedTypeReference.html[`Paramet @@ -317,7 +317,7 @@ that accept {spring-framework-api}/core/ParameterizedTypeReference.html[`Paramet
instead of `Class<T>`.
[[resttestclient-workflow-no-content]]
[[resttestclient-no-content]]
==== No Content
If the response is not expected to have content, you can assert that as follows:
@ -373,7 +373,7 @@ Kotlin:: @@ -373,7 +373,7 @@ Kotlin::
======
[[resttestclient-workflow-json]]
[[resttestclient-json]]
==== JSON Content
You can use `expectBody()` without a target type to perform assertions on the raw

Loading…
Cancel
Save