Skip to content

Commit 62e3215

Browse files
committed
chore: fix codestyle
1 parent f8e22e4 commit 62e3215

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

graphql-kotlin-toolkit-codegen/src/test/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/generator/fieldResolver/FieldResolverGeneratorTest.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ import graphql.schema.GraphQLArgument
77
import graphql.schema.GraphQLFieldDefinition
88
import graphql.schema.GraphQLNonNull
99
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
1610
import kotlin.reflect.KClass
1711
import kotlin.reflect.KFunction
1812
import kotlin.reflect.KProperty1
@@ -22,6 +16,12 @@ import kotlin.reflect.full.createType
2216
import kotlin.reflect.full.memberFunctions
2317
import kotlin.reflect.full.memberProperties
2418
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
2525

2626
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
2727
internal 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

graphql-kotlin-toolkit-codegen/src/test/kotlin/com/auritylab/graphql/kotlin/toolkit/codegen/mapper/KotlinTypeMapperTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ import graphql.schema.GraphQLList
2727
import graphql.schema.GraphQLObjectType
2828
import graphql.schema.GraphQLType
2929
import graphql.schema.GraphQLUnionType
30+
import java.math.BigDecimal
31+
import java.math.BigInteger
32+
import java.util.stream.Stream
3033
import org.junit.jupiter.api.Assertions
3134
import org.junit.jupiter.api.DisplayName
3235
import org.junit.jupiter.api.Nested
@@ -35,9 +38,6 @@ import org.junit.jupiter.api.TestInstance
3538
import org.junit.jupiter.params.ParameterizedTest
3639
import org.junit.jupiter.params.provider.Arguments
3740
import org.junit.jupiter.params.provider.MethodSource
38-
import java.math.BigDecimal
39-
import java.math.BigInteger
40-
import java.util.stream.Stream
4141

4242
internal class KotlinTypeMapperTest {
4343
@Nested
@@ -250,7 +250,7 @@ internal class KotlinTypeMapperTest {
250250
}
251251

252252
@Test
253-
fun `should generate custom list type correctly` () {
253+
fun `should generate custom list type correctly`() {
254254
val innerType = Scalars.GraphQLString
255255
val type = GraphQLList(innerType)
256256

0 commit comments

Comments
 (0)