Add client side interception

Closes gh-332
This commit is contained in:
rstoyanchev
2022-03-21 07:28:00 +00:00
parent bb4ebf6cb8
commit 92547de5d0
21 changed files with 482 additions and 107 deletions

View File

@@ -28,9 +28,9 @@ import org.springframework.graphql.ExecutionGraphQlResponse;
import org.springframework.graphql.GraphQlRequest;
import org.springframework.graphql.GraphQlResponse;
import org.springframework.graphql.ResponseError;
import org.springframework.graphql.client.GraphQlTransport;
import org.springframework.graphql.support.DefaultExecutionGraphQlRequest;
import org.springframework.graphql.support.DefaultExecutionGraphQlResponse;
import org.springframework.graphql.client.GraphQlTransport;
import org.springframework.test.util.AssertionErrors;
import org.springframework.util.AlternativeJdkIdGenerator;
import org.springframework.util.CollectionUtils;

View File

@@ -66,7 +66,7 @@ final class WebTestClientTransport implements GraphQlTransport {
.getResponseBody();
responseMap = (responseMap != null ? responseMap : Collections.emptyMap());
GraphQlResponse response = GraphQlTransport.wrapResponseMap(responseMap);
GraphQlResponse response = GraphQlTransport.createResponse(responseMap);
return Mono.just(response);
}