Skip to content
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

Relax the visibility of MockMVC DSL constructors #33778

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import org.springframework.test.web.servlet.request.AbstractMockHttpServletReque
* @author Sebastien Deleuze
* @since 5.2
*/
open class MockHttpServletRequestDsl internal constructor (private val builder: AbstractMockHttpServletRequestBuilder<*>) {
open class MockHttpServletRequestDsl(private val builder: AbstractMockHttpServletRequestBuilder<*>) {

/**
* @see [MockHttpServletRequestBuilder.contextPath]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import jakarta.servlet.http.Part
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMultipartHttpServletRequestDsl internal constructor (private val builder: MockMultipartHttpServletRequestBuilder) : MockHttpServletRequestDsl(builder) {
class MockMultipartHttpServletRequestDsl(private val builder: MockMultipartHttpServletRequestBuilder) : MockHttpServletRequestDsl(builder) {

/**
* @see [MockMultipartHttpServletRequestBuilder.file]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import java.io.Writer
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMvcResultHandlersDsl internal constructor (private val actions: ResultActions) {
class MockMvcResultHandlersDsl(private val actions: ResultActions) {

/**
* @see MockMvcResultHandlers.print
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.springframework.test.web.servlet.result.*
* @author Sebastien Deleuze
* @since 5.2
*/
class MockMvcResultMatchersDsl internal constructor (private val actions: ResultActions) {
class MockMvcResultMatchersDsl(private val actions: ResultActions) {

/**
* @see MockMvcResultMatchers.request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.springframework.test.web.servlet.request.MockMvcRequestBuilders
* @author Sebastien Deleuze
* @since 5.2
*/
class ResultActionsDsl internal constructor (private val actions: ResultActions, private val mockMvc: MockMvc) {
class ResultActionsDsl(private val actions: ResultActions, private val mockMvc: MockMvc) {

/**
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
Expand All @@ -19,7 +19,6 @@ class ResultActionsDsl internal constructor (private val actions: ResultActions,
return this
}


/**
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
* @since 6.0.4
Expand Down