GH-708 Removed RequestProcessor from Flux FunctionController

Resolves #708

polish
This commit is contained in:
Oleg Zhurakousky
2021-06-15 20:00:00 +02:00
parent e245114875
commit ae8062efb1
8 changed files with 187 additions and 55 deletions

View File

@@ -101,11 +101,10 @@ public class SampleApplicationTests {
RequestEntity.post(new URI("http://localhost:" + this.port + "/sum"))
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_FORM_URLENCODED).body(map),
String.class).getBody()).isEqualTo("[{\"A\":6,\"B\":11}]");
String.class).getBody()).isEqualTo("{\"A\":6,\"B\":11}");
}
@Test
// @Ignore
public void multipart() throws Exception {
LinkedMultiValueMap<String, String> map = new LinkedMultiValueMap<>();
@@ -117,7 +116,7 @@ public class SampleApplicationTests {
RequestEntity.post(new URI("http://localhost:" + this.port + "/sum"))
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.MULTIPART_FORM_DATA).body(map),
String.class).getBody()).isEqualTo("[{\"A\":6,\"B\":11}]");
String.class).getBody()).isEqualTo("{\"A\":6,\"B\":11}");
}
}