Extract GraphQlRequest interface

See gh-332
This commit is contained in:
rstoyanchev
2022-03-18 20:58:21 +00:00
parent 08597c9e8a
commit be05b031d6
10 changed files with 151 additions and 100 deletions

View File

@@ -34,6 +34,7 @@ import com.jayway.jsonpath.TypeRef;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.core.ResolvableType;
import org.springframework.graphql.DefaultGraphQlRequest;
import org.springframework.graphql.GraphQlRequest;
import org.springframework.graphql.GraphQlResponse;
import org.springframework.graphql.GraphQlResponseError;
@@ -179,7 +180,7 @@ final class DefaultGraphQlTester implements GraphQlTester {
}
private GraphQlRequest request() {
return new GraphQlRequest(this.document, this.operationName, this.variables);
return new DefaultGraphQlRequest(this.document, this.operationName, this.variables);
}
private DefaultResponse mapResponse(GraphQlResponse response, GraphQlRequest request) {