Add WebSocketInterceptor

See gh-162
This commit is contained in:
Rossen Stoyanchev
2021-10-20 21:21:31 +01:00
parent 811d32b647
commit 20bae75ed8
23 changed files with 361 additions and 70 deletions

View File

@@ -62,7 +62,7 @@ class WebGraphQlHandlerRequestStrategy extends DirectRequestStrategySupport impl
}
private WebOutput executeInternal(WebInput webInput) {
WebOutput webOutput = this.graphQlHandler.handle(webInput).block(getResponseTimeout());
WebOutput webOutput = this.graphQlHandler.handleRequest(webInput).block(getResponseTimeout());
Assert.notNull(webOutput, "Expected WebOutput");
return webOutput;
}

View File

@@ -272,7 +272,7 @@ public class WebGraphQlTesterTests {
}
ExecutionResult result = builder.build();
WebOutput output = new WebOutput(mock(WebInput.class), result);
given(this.handler.handle(this.bodyCaptor.capture())).willReturn(Mono.just(output));
given(this.handler.handleRequest(this.bodyCaptor.capture())).willReturn(Mono.just(output));
}
@Override