RSocketOutbound refinements; resolve deprecations
* Use properly `cache()` for the `Mono` in the `ClientRSocketConnector` * Don't require a `publisherElementTypeExpression` in the `RSocketOutboundGateway`: the target element type is determined automatically in the `DefaultRequestSpec.toResponseSpec()` * SF has deprecated `MediaType.APPLICATION_JSON_UTF8`: fix all its usage in favor of recommendations to use the `MediaType.APPLICATION_JSON` instead * Also fix plain `application/json;charset=UTF-8` literals to use `MediaType.APPLICATION_JSON` instead
This commit is contained in:
@@ -82,9 +82,9 @@ public class IntegrationGraphControllerTests {
|
||||
public void testIntegrationGraphGet() throws Exception {
|
||||
this.mockMvc.perform(get("/testIntegration")
|
||||
.header(HttpHeaders.ORIGIN, "https://foo.bar.com")
|
||||
.accept(MediaType.parseMediaType("application/json;charset=UTF-8")))
|
||||
.accept(MediaType.APPLICATION_JSON))
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(content().contentType("application/json;charset=UTF-8"))
|
||||
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
|
||||
.andExpect(handler().handlerType(IntegrationGraphController.class))
|
||||
.andExpect(handler().methodName("getGraph"))
|
||||
.andExpect(jsonPath("$.nodes..name")
|
||||
|
||||
Reference in New Issue
Block a user