From 1431ba185dfd9eab6ae062f18c5a931bc41eaaf9 Mon Sep 17 00:00:00 2001 From: Ruediger zu Dohna Date: Thu, 1 Sep 2022 20:25:10 +0200 Subject: [PATCH] #521: merge-fixes & update federation-graphql-java-support --- server/implementation/pom.xml | 2 +- .../java/io/smallrye/graphql/execution/TestConfig.java | 3 +-- .../test/java/io/smallrye/graphql/schema/SchemaTest.java | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/server/implementation/pom.xml b/server/implementation/pom.xml index 390a87f53..fdde82818 100644 --- a/server/implementation/pom.xml +++ b/server/implementation/pom.xml @@ -55,7 +55,7 @@ com.apollographql.federation federation-graphql-java-support - 0.7.0 + 2.0.5 diff --git a/server/implementation/src/test/java/io/smallrye/graphql/execution/TestConfig.java b/server/implementation/src/test/java/io/smallrye/graphql/execution/TestConfig.java index c31e966e6..911d43aca 100644 --- a/server/implementation/src/test/java/io/smallrye/graphql/execution/TestConfig.java +++ b/server/implementation/src/test/java/io/smallrye/graphql/execution/TestConfig.java @@ -1,7 +1,6 @@ package io.smallrye.graphql.execution; -import static java.util.Arrays.asList; - +import java.util.Arrays; import java.util.List; import java.util.Optional; diff --git a/server/implementation/src/test/java/io/smallrye/graphql/schema/SchemaTest.java b/server/implementation/src/test/java/io/smallrye/graphql/schema/SchemaTest.java index 5403bb5d7..390e08013 100644 --- a/server/implementation/src/test/java/io/smallrye/graphql/schema/SchemaTest.java +++ b/server/implementation/src/test/java/io/smallrye/graphql/schema/SchemaTest.java @@ -32,7 +32,7 @@ class SchemaTest { private static final Logger LOG = Logger.getLogger(SchemaTest.class.getName()); - private TestConfig config = (TestConfig) Config.get(); + private final TestConfig config = (TestConfig) Config.get(); @AfterEach void tearDown() { @@ -88,7 +88,7 @@ void testSchemaWithFederationDisabled() { Schema schema = SchemaBuilder .build(scan(Directive.class, Key.class, TestTypeWithFederation.class, FederationTestApi.class)); assertNotNull(schema); - GraphQLSchema graphQLSchema = Bootstrap.bootstrap(schema, false, true); + GraphQLSchema graphQLSchema = Bootstrap.bootstrap(schema, false); assertNotNull(graphQLSchema); String schemaString = new SchemaPrinter().print(graphQLSchema); @@ -110,7 +110,7 @@ void testSchemaWithFederation() { Schema schema = SchemaBuilder .build(scan(Directive.class, Key.class, TestTypeWithFederation.class, FederationTestApi.class)); assertNotNull(schema); - GraphQLSchema graphQLSchema = Bootstrap.bootstrap(schema, false, true); + GraphQLSchema graphQLSchema = Bootstrap.bootstrap(schema, false); assertNotNull(graphQLSchema); String schemaString = new SchemaPrinter().print(graphQLSchema); @@ -122,7 +122,7 @@ void testSchemaWithFederation() { "\"Query root\"\n" + "type Query {\n" + " _entities(representations: [_Any!]!): [_Entity]!\n" + - " _service: _Service\n" + + " _service: _Service!\n" + " testTypeWithFederation(arg: String): TestTypeWithFederation\n" + "}\n" + "\n" +