|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* Copyright 2002-2025 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -129,6 +129,18 @@ open class MockHttpServletRequestDsl(private val builder: AbstractMockHttpServle |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var queryParams: MultiValueMap<String, String>? = null |
|
|
|
var queryParams: MultiValueMap<String, String>? = null |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @see [MockHttpServletRequestBuilder.formField] |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
fun formField(name: String, vararg values: String) { |
|
|
|
|
|
|
|
builder.formField(name, *values) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @see [MockHttpServletRequestBuilder.formFields] |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
var formFields: MultiValueMap<String, String>? = null |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @see [MockHttpServletRequestBuilder.cookie] |
|
|
|
* @see [MockHttpServletRequestBuilder.cookie] |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -215,6 +227,7 @@ open class MockHttpServletRequestDsl(private val builder: AbstractMockHttpServle |
|
|
|
contentType?.also { builder.contentType(it) } |
|
|
|
contentType?.also { builder.contentType(it) } |
|
|
|
params?.also { builder.params(it) } |
|
|
|
params?.also { builder.params(it) } |
|
|
|
queryParams?.also { builder.queryParams(it) } |
|
|
|
queryParams?.also { builder.queryParams(it) } |
|
|
|
|
|
|
|
formFields?.also { builder.formFields(it) } |
|
|
|
sessionAttrs?.also { builder.sessionAttrs(it) } |
|
|
|
sessionAttrs?.also { builder.sessionAttrs(it) } |
|
|
|
flashAttrs?.also { builder.flashAttrs(it) } |
|
|
|
flashAttrs?.also { builder.flashAttrs(it) } |
|
|
|
session?.also { builder.session(it) } |
|
|
|
session?.also { builder.session(it) } |
|
|
|
|