From 005782723691b14f12d397cb5254da3fe9bf00be Mon Sep 17 00:00:00 2001 From: ksrinivasan Date: Tue, 25 Oct 2022 13:32:09 -0700 Subject: [PATCH] Fix failing kotlin v2 tests. --- .../dataClassWithStringProperties/test/QueryTest.kt | 2 +- .../graphql/dgs/codegen/cases/input/test/QueryTest.kt | 10 +++++----- .../cases/projectionWithNestedInputs/test/QueryTest.kt | 4 ++-- .../cases/projectionWithTypeAndArgs/test/QueryTest.kt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithStringProperties/test/QueryTest.kt b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithStringProperties/test/QueryTest.kt index 619ba3c5a..bd7843f05 100644 --- a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithStringProperties/test/QueryTest.kt +++ b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithStringProperties/test/QueryTest.kt @@ -33,7 +33,7 @@ class QueryTest { } } - assertEquals("""query { + assertEquals("""{ | __typename | people { | __typename diff --git a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/input/test/QueryTest.kt b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/input/test/QueryTest.kt index e852be806..8c7aac5b6 100644 --- a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/input/test/QueryTest.kt +++ b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/input/test/QueryTest.kt @@ -31,7 +31,7 @@ class QueryTest { movies() } - Assertions.assertEquals("""query { + Assertions.assertEquals("""{ | __typename | movies |} @@ -44,7 +44,7 @@ class QueryTest { movies(filter = MovieFilter()) } - Assertions.assertEquals("""query { + Assertions.assertEquals("""{ | __typename | movies(filter: {}) |} @@ -57,7 +57,7 @@ class QueryTest { movies(filter = MovieFilter(genre = null)) } - Assertions.assertEquals("""query { + Assertions.assertEquals("""{ | __typename | movies(filter: {genre : null}) |} @@ -70,7 +70,7 @@ class QueryTest { movies(filter = MovieFilter(genre = "horror")) } - Assertions.assertEquals("""query { + Assertions.assertEquals("""{ | __typename | movies(filter: {genre : "horror"}) |} @@ -83,7 +83,7 @@ class QueryTest { movies(filter = MovieFilter(genre = "horror\ncomedy")) } - Assertions.assertEquals("""query { + Assertions.assertEquals("""{ | __typename | movies(filter: {genre : "horror\ncomedy"}) |} diff --git a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithNestedInputs/test/QueryTest.kt b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithNestedInputs/test/QueryTest.kt index 4e2c864eb..cb5da8136 100644 --- a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithNestedInputs/test/QueryTest.kt +++ b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithNestedInputs/test/QueryTest.kt @@ -37,7 +37,7 @@ class QueryTest { } Assertions.assertEquals( - """query { + """{ | __typename | q1(arg2: {arg2 : ""}) |} @@ -57,7 +57,7 @@ class QueryTest { } Assertions.assertEquals( - """query { + """{ | __typename | q2(arg1: {arg1 : {}}) |} diff --git a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/test/QueryTest.kt b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/test/QueryTest.kt index 76800077c..e20ffc686 100644 --- a/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/test/QueryTest.kt +++ b/graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/test/QueryTest.kt @@ -36,7 +36,7 @@ class QueryTest { } assertEquals( - """query { + """{ | __typename | person(a2: "name") { | __typename