Upgrade some deps; fix compatibility with them
* Upgrade to the latest Spring portfolio stack; fix tests and effected classes * The move to the latest Micrometer does not affect code base
This commit is contained in:
@@ -38,6 +38,7 @@ import org.springframework.util.Assert;
|
||||
* GraphQL Query, Mutation and Subscription requests.
|
||||
*
|
||||
* @author Daniel Frey
|
||||
* @author Artem Bilan
|
||||
*
|
||||
* @since 6.0
|
||||
*/
|
||||
@@ -145,7 +146,7 @@ public class GraphQlMessageHandler extends AbstractReplyProducingMessageHandler
|
||||
String operationName = evaluateOperationNameExpression(requestMessage);
|
||||
Map<String, Object> variables = evaluateVariablesExpression(requestMessage);
|
||||
String id = evaluateExecutionIdExpression(requestMessage);
|
||||
requestInput = new RequestInput(query, operationName, variables, this.locale, id);
|
||||
requestInput = new RequestInput(query, operationName, variables, id, this.locale);
|
||||
}
|
||||
|
||||
return this.graphQlService.execute(requestInput);
|
||||
|
||||
@@ -64,6 +64,7 @@ import reactor.test.StepVerifier;
|
||||
/**
|
||||
*
|
||||
* @author Daniel Frey
|
||||
* @author Artem Bilan
|
||||
*
|
||||
* @since 6.0
|
||||
*/
|
||||
@@ -104,7 +105,7 @@ public class GraphQlMessageHandlerTests {
|
||||
.thenCancel()
|
||||
.verifyLater();
|
||||
|
||||
RequestInput payload = new RequestInput("{ testQuery { id } }", null, null, null, UUID.randomUUID().toString());
|
||||
RequestInput payload = new RequestInput("{ testQuery { id } }", null, null, UUID.randomUUID().toString(), null);
|
||||
this.inputChannel.send(MessageBuilder.withPayload(payload).build());
|
||||
|
||||
verifier.verify(Duration.ofSeconds(10));
|
||||
@@ -156,8 +157,8 @@ public class GraphQlMessageHandlerTests {
|
||||
.verifyLater();
|
||||
|
||||
RequestInput payload =
|
||||
new RequestInput("mutation { update(id: \"" + fakeId + "\") { id } }", null, null, null,
|
||||
UUID.randomUUID().toString());
|
||||
new RequestInput("mutation { update(id: \"" + fakeId + "\") { id } }", null, null,
|
||||
UUID.randomUUID().toString(), null);
|
||||
this.inputChannel.send(MessageBuilder.withPayload(payload).build());
|
||||
|
||||
verifier.verify(Duration.ofSeconds(10));
|
||||
@@ -195,7 +196,7 @@ public class GraphQlMessageHandlerTests {
|
||||
.verifyLater();
|
||||
|
||||
RequestInput payload =
|
||||
new RequestInput("subscription { results { id } }", null, null, null, UUID.randomUUID().toString());
|
||||
new RequestInput("subscription { results { id } }", null, null, UUID.randomUUID().toString(), null);
|
||||
this.inputChannel.send(MessageBuilder.withPayload(payload).build());
|
||||
|
||||
verifier.verify(Duration.ofSeconds(10));
|
||||
|
||||
Reference in New Issue
Block a user