Skip to content

[generator] avoid duplicate argument deserialization #1379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build fix
  • Loading branch information
Dariusz Kuc committed Feb 26, 2022
commit 16f2fdeed01af72e2338f9daad106a0bbc2f7bab

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Expedia, Inc
* Copyright 2022 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,6 @@ import com.expediagroup.graphql.generator.SchemaGeneratorConfig
import com.expediagroup.graphql.generator.TopLevelObject
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.execution.KotlinDataFetcherFactoryProvider
import com.expediagroup.graphql.generator.execution.SimpleKotlinDataFetcherFactoryProvider
import com.expediagroup.graphql.generator.toSchema
import com.expediagroup.graphql.server.execution.DataLoaderRegistryFactory
import com.expediagroup.graphql.server.execution.GraphQLContextFactory
Expand Down Expand Up @@ -68,11 +67,6 @@ class SchemaConfigurationTest {
assertThat(ctx).hasSingleBean(ObjectMapper::class.java)
val mapper = ctx.getBean(ObjectMapper::class.java)
assertThat(ctx).hasSingleBean(KotlinDataFetcherFactoryProvider::class.java)
val dataFetcherFactoryProvider = ctx.getBean(KotlinDataFetcherFactoryProvider::class.java)
val privateMapperField = SimpleKotlinDataFetcherFactoryProvider::class.java.getDeclaredField("objectMapper")
privateMapperField.isAccessible = true
val privateMapper = privateMapperField.get(dataFetcherFactoryProvider)
assertEquals(mapper, privateMapper)

assertThat(ctx).hasSingleBean(GraphQLSchema::class.java)
val schema = ctx.getBean(GraphQLSchema::class.java)
Expand Down