Skip to content

Commit ce4e0ec

Browse files
committed
Clean up tests
1 parent 7028213 commit ce4e0ec

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/kotlin/graphql/kickstart/tools/DirectiveTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ class DirectiveTest {
4040
.build()
4141
}
4242

43-
class QueryResolver : GraphQLQueryResolver {
43+
private class QueryResolver : GraphQLQueryResolver {
4444
fun books(): List<Book> {
4545
return listOf(Book(42L, "Test Book"))
4646
}
4747
}
4848

49-
data class Book(
49+
private data class Book(
5050
val id: Long,
5151
val name: String
5252
)
5353

54-
enum class AllowedState {
54+
private enum class AllowedState {
5555
ALLOWED,
5656
DISALLOWED
5757
}
5858

59-
class AllowedDirective : SchemaDirectiveWiring {
59+
private class AllowedDirective : SchemaDirectiveWiring {
6060
override fun onField(environment: SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition>): GraphQLFieldDefinition {
6161
val field = environment.element
6262

src/test/kotlin/graphql/kickstart/tools/RelayConnectionTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class RelayConnectionTest {
141141
})
142142
}
143143

144-
class QueryResolver : GraphQLQueryResolver {
144+
private class QueryResolver : GraphQLQueryResolver {
145145
fun users(first: Int?, after: String?, env: DataFetchingEnvironment): Connection<User> {
146146
return SimpleListConnection(listOf(User(1L, "Luke"))).get(env)
147147
}
@@ -151,16 +151,16 @@ class RelayConnectionTest {
151151
}
152152
}
153153

154-
data class User(
154+
private data class User(
155155
val id: Long,
156156
val name: String
157157
)
158158

159-
data class AnotherType(
159+
private data class AnotherType(
160160
val echo: String
161161
)
162162

163-
class UppercaseDirective : SchemaDirectiveWiring {
163+
private class UppercaseDirective : SchemaDirectiveWiring {
164164

165165
override fun onField(environment: SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition>): GraphQLFieldDefinition {
166166
val field = environment.element

0 commit comments

Comments
 (0)