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:
Artem Bilan
2022-03-08 10:08:36 -05:00
parent f09c665db4
commit 70587f5e2f
14 changed files with 126 additions and 137 deletions

View File

@@ -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);

View File

@@ -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));