New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Kotlin DSL for ResultActions.andExpectAll()
#27317
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
theme: kotlin
An issue related to Kotlin support
type: enhancement
A general enhancement
Comments
sbrannen
added
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
labels
Aug 23, 2021
simonbasle
added a commit
to simonbasle/spring-framework
that referenced
this issue
Dec 21, 2022
As the DSL internally calls ResultActions.andExpect, this is done with a trick where a synthetic ResultActions is provided at top level which stores each ResultMatcher in a mutable list. Once the DSL usage is done, the top level DSL andExpectAll turns that list into a vararg passed down to the actual `actions.andExpectAll`. Fixes spring-projectsgh-27317.
simonbasle
added a commit
that referenced
this issue
Jan 3, 2023
As the DSL internally calls `ResultActions.andExpect`, this is done with a trick where a synthetic `ResultActions` is provided at top level which stores each `ResultMatcher` in a mutable list. Once the DSL usage is done, the top level DSL `andExpectAll` turns that list into a `vararg` passed down to the actual `actions.andExpectAll`. Closes gh-27317
simonbasle
added a commit
to simonbasle/spring-framework
that referenced
this issue
Jan 4, 2023
…e manual This just adds a Kotlin snippet alongside the Java snippet in the reference manual. Relates to spring-projectsgh-29727 Closes spring-projectsgh-27317
simonbasle
added a commit
that referenced
this issue
Jan 4, 2023
|
sbrannen
added
the
status: superseded
An issue that has been superseded by another
label
Jan 24, 2023
mdeinum
pushed a commit
to mdeinum/spring-framework
that referenced
this issue
Jun 29, 2023
As the DSL internally calls `ResultActions.andExpect`, this is done with a trick where a synthetic `ResultActions` is provided at top level which stores each `ResultMatcher` in a mutable list. Once the DSL usage is done, the top level DSL `andExpectAll` turns that list into a `vararg` passed down to the actual `actions.andExpectAll`. Closes spring-projectsgh-27317
mdeinum
pushed a commit
to mdeinum/spring-framework
that referenced
this issue
Jun 29, 2023
…e manual (spring-projects#29766) This just adds a Kotlin snippet alongside the Java snippet in the reference manual. Relates to spring-projectsgh-29727 Closes spring-projectsgh-27317
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
theme: kotlin
An issue related to Kotlin support
type: enhancement
A general enhancement
Overview
Commit dd9b99e introduced
ResultActions.andExpectAll()
to support soft assertions inMockMvc
.ResultActionsDsl.kt
already has support forandExpect()
.Related Issues
expectAll()
inWebTestClient
#27318Deliverables
ResultActions.andExpectAll()
inResultActionsDsl.kt
. => Add Kotlin DSL support for MockMVC andExpectAll #29727andExpectAll()
in the reference manual alongside the Java example introduced in dd9b99e. => Polish #29727: Mention Kotlin andExpectAll in reference manual #29766The text was updated successfully, but these errors were encountered: