File tree 1 file changed +13
-0
lines changed
spring-test/src/main/kotlin/org/springframework/test/web/servlet
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,18 @@ open class MockHttpServletRequestDsl internal constructor (private val builder:
115
115
*/
116
116
var params: MultiValueMap <String , String >? = null
117
117
118
+ /* *
119
+ * @see [MockHttpServletRequestBuilder.queryParam]
120
+ */
121
+ fun queryParam (name : String , vararg values : String ) {
122
+ builder.queryParam(name, * values)
123
+ }
124
+
125
+ /* *
126
+ * @see [MockHttpServletRequestBuilder.queryParams]
127
+ */
128
+ var queryParams: MultiValueMap <String , String >? = null
129
+
118
130
/* *
119
131
* @see [MockHttpServletRequestBuilder.cookie]
120
132
*/
@@ -200,6 +212,7 @@ open class MockHttpServletRequestDsl internal constructor (private val builder:
200
212
accept?.also { builder.accept(it) }
201
213
contentType?.also { builder.contentType(it) }
202
214
params?.also { builder.params(it) }
215
+ queryParams?.also { builder.queryParams(it) }
203
216
sessionAttrs?.also { builder.sessionAttrs(it) }
204
217
flashAttrs?.also { builder.flashAttrs(it) }
205
218
session?.also { builder.session(it) }
You can’t perform that action at this time.
0 commit comments