From 8422dc3ffa286ecfdfcaa491263fbf645601c8f2 Mon Sep 17 00:00:00 2001 From: vojtapol Date: Wed, 25 Sep 2019 10:00:22 -0400 Subject: [PATCH] Fix tests --- .../kotlin/com/coxautodev/graphql/tools/EndToEndSpecHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/kotlin/com/coxautodev/graphql/tools/EndToEndSpecHelper.kt b/src/test/kotlin/com/coxautodev/graphql/tools/EndToEndSpecHelper.kt index 158fc825..8e27e7e2 100644 --- a/src/test/kotlin/com/coxautodev/graphql/tools/EndToEndSpecHelper.kt +++ b/src/test/kotlin/com/coxautodev/graphql/tools/EndToEndSpecHelper.kt @@ -259,7 +259,7 @@ class Query : GraphQLQueryResolver, ListListResolver() { } fun itemsWithOptionalInput(input: ItemSearchInput?) = if (input == null) items else items(input) - fun itemsWithOptionalInputExplicit(input: Optional) = if (input.isPresent) items(input.get()) else items + fun itemsWithOptionalInputExplicit(input: Optional?) = if (input?.isPresent == true) items(input.get()) else items fun enumInputType(type: Type) = type fun customScalarMapInputType(customScalarMap: Map) = customScalarMap fun itemWithGenericProperties() = ItemWithGenericProperties(listOf("A", "B"))