Replace remaining use of block operator
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,7 @@ import org.springframework.web.reactive.function.client.ClientResponse;
|
||||
import org.springframework.web.reactive.function.client.WebClient;
|
||||
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class MultipartIntegrationTests extends AbstractHttpHandlerIntegrationTests {
|
||||
|
||||
@@ -170,10 +170,19 @@ public class MultipartIntegrationTests extends AbstractHttpHandlerIntegrationTes
|
||||
|
||||
assertEquals("fieldValue", fieldPart.value());
|
||||
assertEquals("fileParts:foo.txt", partDescription(fileParts));
|
||||
assertEquals("fileParts:foo.txt", partDescription(filePartsMono.block()));
|
||||
assertEquals("[fileParts:foo.txt,fileParts:logo.png]", partFluxDescription(filePartsFlux).block());
|
||||
assertEquals("Jason", person.getName());
|
||||
assertEquals("Jason", personMono.block().getName());
|
||||
|
||||
StepVerifier.create(partFluxDescription(filePartsFlux))
|
||||
.consumeNextWith(content -> assertEquals("[fileParts:foo.txt,fileParts:logo.png]", content))
|
||||
.verifyComplete();
|
||||
|
||||
StepVerifier.create(filePartsMono)
|
||||
.consumeNextWith(filePart -> assertEquals("fileParts:foo.txt", partDescription(filePart)))
|
||||
.verifyComplete();
|
||||
|
||||
StepVerifier.create(personMono)
|
||||
.consumeNextWith(p -> assertEquals("Jason", p.getName()))
|
||||
.verifyComplete();
|
||||
}
|
||||
|
||||
@PostMapping("/requestBodyMap")
|
||||
|
||||
Reference in New Issue
Block a user