@@ -7,12 +7,6 @@ import graphql.schema.GraphQLArgument
7
7
import graphql.schema.GraphQLFieldDefinition
8
8
import graphql.schema.GraphQLNonNull
9
9
import 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
16
10
import kotlin.reflect.KClass
17
11
import kotlin.reflect.KFunction
18
12
import kotlin.reflect.KProperty1
@@ -22,6 +16,12 @@ import kotlin.reflect.full.createType
22
16
import kotlin.reflect.full.memberFunctions
23
17
import kotlin.reflect.full.memberProperties
24
18
import 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
25
25
26
26
@TestInstance(TestInstance .Lifecycle .PER_CLASS )
27
27
internal class FieldResolverGeneratorTest : AbstractMockCompilationTest () {
@@ -116,7 +116,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
116
116
val functionParameters = getFunction.parameters
117
117
Assertions .assertEquals(2 , functionParameters.size) // 2 as the first parameter is the receiver.
118
118
119
- // Assert that the get function will return a 'String?'.
119
+ // Assert that the get function will return a 'String?'.
120
120
Assertions .assertEquals(String ::class .createType(nullable = true ), getFunction.returnType)
121
121
}
122
122
}
@@ -152,8 +152,8 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
152
152
Assertions .assertEquals(4 , functionParameters.size)
153
153
154
154
// 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" }
157
157
Assertions .assertNotNull(boolParameter)
158
158
Assertions .assertNotNull(intParameter)
159
159
boolParameter!!
@@ -164,7 +164,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
164
164
}
165
165
166
166
@Test
167
- fun `should generate return type correctly` () {
167
+ fun `should generate return type correctly` () {
168
168
val resolveFunction = getResolveFunction(generatedClass)
169
169
170
170
val returnType = resolveFunction.returnType
@@ -196,7 +196,7 @@ internal class FieldResolverGeneratorTest : AbstractMockCompilationTest() {
196
196
}
197
197
198
198
@Test
199
- fun `should apply custom global context correctly` () {
199
+ fun `should apply custom global context correctly` () {
200
200
val envClass = getEnvClass(generatedClass)
201
201
202
202
// Assert against the properties one more time
0 commit comments