Upgrade to Spring Java Format 0.0.38
Closes gh-890
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
* Copyright 2014-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,9 +27,14 @@ public class InvokeService {
|
||||
|
||||
public void invokeService() {
|
||||
// tag::invoke-service[]
|
||||
this.webTestClient.get().uri("/").accept(MediaType.APPLICATION_JSON) // <1>
|
||||
.exchange().expectStatus().isOk() // <2>
|
||||
.expectBody().consumeWith(document("index")); // <3>
|
||||
this.webTestClient.get()
|
||||
.uri("/")
|
||||
.accept(MediaType.APPLICATION_JSON) // <1>
|
||||
.exchange()
|
||||
.expectStatus()
|
||||
.isOk() // <2>
|
||||
.expectBody()
|
||||
.consumeWith(document("index")); // <3>
|
||||
// end::invoke-service[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user