Skip to content

Commit

Permalink
Relax the visibility of MockMVC DSL constructors
Browse files Browse the repository at this point in the history
Closes gh-33778
  • Loading branch information
Hejow authored and sdeleuze committed Nov 6, 2024
1 parent fb98d74 commit 4697ae1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
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

0 comments on commit 4697ae1

Please sign in to comment.