Skip to content

Commit 4756a4b

Browse files
committed
Polishing
See gh-35820
1 parent 40c5c5d commit 4756a4b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

framework-docs/modules/ROOT/pages/testing/mockmvc/hamcrest/expectations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ Kotlin::
185185
[source,kotlin,indent=0,subs="verbatim,quotes"]
186186
----
187187
standaloneSetup(SimpleController())
188-
.alwaysExpect<StandaloneMockMvcBuilder>(MockMvcResultMatchers.status().isOk())
189-
.alwaysExpect<StandaloneMockMvcBuilder>(MockMvcResultMatchers.content().contentType("application/json;charset=UTF-8"))
188+
.alwaysExpect<StandaloneMockMvcBuilder>(status().isOk())
189+
.alwaysExpect<StandaloneMockMvcBuilder>(content().contentType("application/json;charset=UTF-8"))
190190
.build()
191191
----
192192
======

framework-docs/modules/ROOT/pages/testing/mockmvc/hamcrest/requests.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Kotlin::
165165
166166
@BeforeEach
167167
fun setup() {
168-
mockMvc = MockMvcBuilders.standaloneSetup(AccountController())
168+
mockMvc = standaloneSetup(AccountController())
169169
.defaultRequest<StandaloneMockMvcBuilder>(get("/")
170170
.contextPath("/app").servletPath("/main")
171171
.accept(MediaType.APPLICATION_JSON)).build()

framework-docs/modules/ROOT/pages/testing/mockmvc/htmlunit/mah.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Kotlin::
269269
----
270270
val mockMvc = MockMvcBuilders
271271
.webAppContextSetup(context)
272-
.apply(springSecurity())
272+
.apply<DefaultMockMvcBuilder>(springSecurity())
273273
.build()
274274
275275
webClient = MockMvcWebClientBuilder

framework-docs/modules/ROOT/pages/testing/mockmvc/htmlunit/webdriver.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ Kotlin::
564564
----
565565
val mockMvc: MockMvc = MockMvcBuilders
566566
.webAppContextSetup(context)
567-
.apply(springSecurity())
567+
.apply<DefaultMockMvcBuilder>(springSecurity())
568568
.build()
569569
570570
driver = MockMvcHtmlUnitDriverBuilder

0 commit comments

Comments
 (0)