use of org.springframework.http.client.MultipartBodyBuilder in project spring-framework by spring-projects.
the class RequestPartMethodArgumentResolverTests method fluxPersonNotRequired.
// gh-23060
@Test
void fluxPersonNotRequired() {
MethodParameter param = this.testMethod.annot(requestPart().notRequired()).arg(Flux.class, Person.class);
MultipartBodyBuilder bodyBuilder = new MultipartBodyBuilder();
Flux<Person> actual = resolveArgument(param, bodyBuilder);
assertThat(actual.collectList().block()).isEmpty();
}
Aggregations