Relax the visibility of MockMVC DSL constructors

Closes gh-33778
This commit is contained in:
Hejow 2024-10-24 01:31:38 +09:00 committed by Sébastien Deleuze
parent fb98d74a47
commit 4697ae10ee
5 changed files with 5 additions and 6 deletions

View File

@ -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]

View File

@ -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]

View File

@ -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

View File

@ -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

View File

@ -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.
@ -19,7 +19,6 @@ class ResultActionsDsl internal constructor (private val actions: ResultActions,
return this
}
/**
* Provide access to [MockMvcResultMatchersDsl] Kotlin DSL.
* @since 6.0.4