Fix code snippets in Javadoc for exchangeSuccessfully()

Closes gh-35642

Signed-off-by: Dónal Murtagh <donal.murtagh@clarusonesourcing.com>
This commit is contained in:
Dónal Murtagh
2025-10-14 23:02:58 +01:00
committed by Sam Brannen
parent a7c43d90fd
commit 22ecab5aab
2 changed files with 2 additions and 2 deletions
@@ -709,7 +709,7 @@ public interface WebTestClient {
* Variant of {@link #exchange()} that expects a successful response.
* Effectively, a shortcut for:
* <pre class="code">
* exchange().is2xxSuccessful()
* exchange().expectStatus().is2xxSuccessful()
* </pre>
* @return a spec for expectations on the response
* @since 7.0
@@ -523,7 +523,7 @@ public interface RestTestClient {
* Variant of {@link #exchange()} that expects a successful response.
* Effectively, a shortcut for:
* <pre class="code">
* exchange().is2xxSuccessful()
* exchange().expectStatus().is2xxSuccessful()
* </pre>
* @return a spec for expectations on the response
*/