@@ -7,12 +7,6 @@ import graphql.schema.GraphQLArgument
77import graphql.schema.GraphQLFieldDefinition
88import graphql.schema.GraphQLNonNull
99import graphql.schema.GraphQLObjectType
10- import org.junit.jupiter.api.Assertions
11- import org.junit.jupiter.api.BeforeAll
12- import org.junit.jupiter.api.DisplayName
13- import org.junit.jupiter.api.Nested
14- import org.junit.jupiter.api.Test
15- import org.junit.jupiter.api.TestInstance
1610import kotlin.reflect.KClass
1711import kotlin.reflect.KFunction
1812import kotlin.reflect.KProperty1
@@ -22,6 +16,12 @@ import kotlin.reflect.full.createType
2216import kotlin.reflect.full.memberFunctions
2317import kotlin.reflect.full.memberProperties
2418import kotlin.reflect.full.starProjectedType
19+ import org.junit.jupiter.api.Assertions
20+ import org.junit.jupiter.api.BeforeAll
21+ import org.junit.jupiter.api.DisplayName
22+ import org.junit.jupiter.api.Nested
23+ import org.junit.jupiter.api.Test
24+ import org.junit.jupiter.api.TestInstance
2525
2626@TestInstance(TestInstance .Lifecycle .PER_CLASS )
2727internal class FieldResolverGeneratorTest : AbstractMockCompilationTest () {
@@ -116,7 +116,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
116116 val functionParameters = getFunction.parameters
117117 Assertions .assertEquals(2 , functionParameters.size) // 2 as the first parameter is the receiver.
118118
119- // Assert that the get function will return a 'String?'.
119+ // Assert that the get function will return a 'String?'.
120120 Assertions .assertEquals(String ::class .createType(nullable = true ), getFunction.returnType)
121121 }
122122 }
@@ -152,8 +152,8 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
152152 Assertions .assertEquals(4 , functionParameters.size)
153153
154154 // Assert against the additional parameters.
155- val boolParameter = functionParameters.firstOrNull { it.name == " bool" }
156- val intParameter = functionParameters.firstOrNull { it.name == " int" }
155+ val boolParameter = functionParameters.firstOrNull { it.name == " bool" }
156+ val intParameter = functionParameters.firstOrNull { it.name == " int" }
157157 Assertions .assertNotNull(boolParameter)
158158 Assertions .assertNotNull(intParameter)
159159 boolParameter!!
@@ -164,7 +164,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
164164 }
165165
166166 @Test
167- fun `should generate return type correctly` () {
167+ fun `should generate return type correctly` () {
168168 val resolveFunction = getResolveFunction(generatedClass)
169169
170170 val returnType = resolveFunction.returnType
@@ -196,7 +196,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
196196 }
197197
198198 @Test
199- fun `should apply custom global context correctly` () {
199+ fun `should apply custom global context correctly` () {
200200 val envClass = getEnvClass(generatedClass)
201201
202202 // Assert against the properties one more time
0 commit comments