|
|
@ -27,6 +27,7 @@ import org.springframework.http.HttpHeaders; |
|
|
|
import org.springframework.http.HttpMethod; |
|
|
|
import org.springframework.http.HttpMethod; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest; |
|
|
|
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest; |
|
|
|
|
|
|
|
import org.springframework.util.LinkedMultiValueMap; |
|
|
|
import org.springframework.util.MultiValueMap; |
|
|
|
import org.springframework.util.MultiValueMap; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -42,6 +43,10 @@ public class FormHttpMessageReaderTests { |
|
|
|
ResolvableType.forClassWithGenerics(MultiValueMap.class, String.class, String.class), |
|
|
|
ResolvableType.forClassWithGenerics(MultiValueMap.class, String.class, String.class), |
|
|
|
MediaType.APPLICATION_FORM_URLENCODED)); |
|
|
|
MediaType.APPLICATION_FORM_URLENCODED)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertTrue(this.reader.canRead( |
|
|
|
|
|
|
|
ResolvableType.forInstance(new LinkedMultiValueMap<String, String>()), |
|
|
|
|
|
|
|
MediaType.APPLICATION_FORM_URLENCODED)); |
|
|
|
|
|
|
|
|
|
|
|
assertFalse(this.reader.canRead( |
|
|
|
assertFalse(this.reader.canRead( |
|
|
|
ResolvableType.forClassWithGenerics(MultiValueMap.class, String.class, Object.class), |
|
|
|
ResolvableType.forClassWithGenerics(MultiValueMap.class, String.class, Object.class), |
|
|
|
MediaType.APPLICATION_FORM_URLENCODED)); |
|
|
|
MediaType.APPLICATION_FORM_URLENCODED)); |
|
|
|