Skip to content

Commit 0c5070f

Browse files
committed
unit test
1 parent 5af3640 commit 0c5070f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.kotlin.generated
2+
3+
import com.expediagroup.graphql.generator.annotations.*
4+
5+
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
6+
open class Query {
7+
open fun getStuff(): String = throw NotImplementedError("Query.getStuff must be implemented.")
8+
open fun getStuffWithInput(input: String, dataFetchingEnvironment: graphql.schema.DataFetchingEnvironment): String = throw NotImplementedError("Query.getStuffWithInput must be implemented.")
9+
}
10+
11+
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
12+
open class GetStuffQuery {
13+
open fun getStuff(): String = throw NotImplementedError("Query.getStuff must be implemented.")
14+
}
15+
16+
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
17+
open class GetStuffWithInputQuery {
18+
open fun getStuffWithInput(input: String, dataFetchingEnvironment: graphql.schema.DataFetchingEnvironment): String = throw NotImplementedError("Query.getStuffWithInput must be implemented.")
19+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type Query {
2+
getStuff: String!
3+
getStuffWithInput(input: String!): String!
4+
getMoreStuffWithInput(input: String!): String!
5+
}

0 commit comments

Comments
 (0)