File tree Expand file tree Collapse file tree 3 files changed +3
-65
lines changed
test/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 3 files changed +3
-65
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<properties >
15
15
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
16
- <java .version>8</java .version>
16
+ <java .version>1. 8</java .version>
17
17
<kotlin .version>1.8.21</kotlin .version>
18
18
<kotlin-coroutines .version>1.7.3</kotlin-coroutines .version>
19
19
<jackson .version>2.15.3</jackson .version>
286
286
<artifactId >maven-compiler-plugin</artifactId >
287
287
<version >3.11.0</version >
288
288
<configuration >
289
- <source >11 </source >
290
- <target >11 </target >
289
+ <source >${java.version} </source >
290
+ <target >${java.version} </target >
291
291
</configuration >
292
292
</plugin >
293
293
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package graphql.kickstart.tools
2
2
3
- import graphql.ExceptionWhileDataFetching
4
3
import graphql.GraphQL
5
4
import graphql.execution.AsyncExecutionStrategy
6
5
import graphql.schema.GraphQLSchema
@@ -14,43 +13,6 @@ import java.util.*
14
13
*/
15
14
class InaccessibleFieldResolverTest {
16
15
17
- @Test
18
- fun `private field from closed module is not accessible` () {
19
- val schema: GraphQLSchema = SchemaParser .newParser()
20
- .schemaString(
21
- """
22
- type Query {
23
- locale: Locale
24
- }
25
-
26
- type Locale {
27
- country: String!
28
- languageTag: String!
29
- }
30
- """ )
31
- .resolvers(Query ())
32
- .build()
33
- .makeExecutableSchema()
34
- val gql: GraphQL = GraphQL .newGraphQL(schema)
35
- .queryExecutionStrategy(AsyncExecutionStrategy ())
36
- .build()
37
-
38
- val result = gql.execute(
39
- """
40
- query {
41
- locale {
42
- country
43
- languageTag
44
- }
45
- }
46
- """
47
- )
48
-
49
- assertEquals(result.errors.size, 1 )
50
- val exceptionWhileDataFetching = result.errors[0 ] as ExceptionWhileDataFetching
51
- assert (exceptionWhileDataFetching.exception is IllegalAccessException )
52
- }
53
-
54
16
@Test
55
17
fun `private field from closed module is accessible through resolver` () {
56
18
val schema: GraphQLSchema = SchemaParser .newParser()
You can’t perform that action at this time.
0 commit comments