From 287870acfa582e21812e67f6c6fdcf5132866a86 Mon Sep 17 00:00:00 2001 From: "Sachin D. Shinde" Date: Tue, 17 Mar 2020 09:11:28 -0700 Subject: [PATCH] Add @deprecated inclusion check to FederationTest --- .../apollographql/federation/graphqljava/FederationTest.java | 2 +- .../apollographql/federation/graphqljava/schemas/empty.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql-java-support/src/test/java/com/apollographql/federation/graphqljava/FederationTest.java b/graphql-java-support/src/test/java/com/apollographql/federation/graphqljava/FederationTest.java index aee84b4e..b0bf7415 100644 --- a/graphql-java-support/src/test/java/com/apollographql/federation/graphqljava/FederationTest.java +++ b/graphql-java-support/src/test/java/com/apollographql/federation/graphqljava/FederationTest.java @@ -40,7 +40,7 @@ void testEmpty() { final String schemaString = new SchemaPrinter(SchemaPrinter.Options.defaultOptions() .includeDirectives(directive -> !ignoredDirectives.contains(directive.getName())) ).print(federated); - Assertions.assertEquals("type Query {\n" + + Assertions.assertEquals("type Query @deprecated(reason : \"dummy\") {\n" + " _service: _Service\n" + "}\n" + "\n" + diff --git a/graphql-java-support/src/test/resources/com/apollographql/federation/graphqljava/schemas/empty.graphql b/graphql-java-support/src/test/resources/com/apollographql/federation/graphqljava/schemas/empty.graphql index 753f79b3..64acf0b7 100644 --- a/graphql-java-support/src/test/resources/com/apollographql/federation/graphqljava/schemas/empty.graphql +++ b/graphql-java-support/src/test/resources/com/apollographql/federation/graphqljava/schemas/empty.graphql @@ -2,5 +2,5 @@ schema { query: Query } -type Query { +type Query @deprecated(reason : "dummy") { }