@@ -5,6 +5,7 @@ import graphql.language.BooleanValue
5
5
import graphql.language.FloatValue
6
6
import graphql.language.IntValue
7
7
import graphql.language.StringValue
8
+ import graphql.scalars.ExtendedScalars
8
9
import graphql.schema.CoercingParseLiteralException
9
10
import graphql.schema.CoercingParseValueException
10
11
import graphql.schema.CoercingSerializeException
@@ -18,7 +19,7 @@ class ScalarsBigIntegerTest extends Specification {
18
19
@Unroll
19
20
def " BigInteger parse literal #literal.value as #result" () {
20
21
expect :
21
- JavaPrimitives .GraphQLBigInteger. getCoercing(). parseLiteral(literal) == result
22
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). parseLiteral(literal) == result
22
23
23
24
where :
24
25
literal | result
@@ -30,7 +31,7 @@ class ScalarsBigIntegerTest extends Specification {
30
31
@Unroll
31
32
def " BigInteger returns null for invalid #literal" () {
32
33
when :
33
- JavaPrimitives .GraphQLBigInteger. getCoercing(). parseLiteral(literal)
34
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). parseLiteral(literal)
34
35
then :
35
36
thrown(CoercingParseLiteralException )
36
37
@@ -45,8 +46,8 @@ class ScalarsBigIntegerTest extends Specification {
45
46
@Unroll
46
47
def " BigInteger serialize #value into #result (#result.class)" () {
47
48
expect :
48
- JavaPrimitives .GraphQLBigInteger. getCoercing(). serialize(value) == result
49
- JavaPrimitives .GraphQLBigInteger. getCoercing(). parseValue(value) == result
49
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). serialize(value) == result
50
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). parseValue(value) == result
50
51
51
52
where :
52
53
value | result
@@ -64,7 +65,7 @@ class ScalarsBigIntegerTest extends Specification {
64
65
@Unroll
65
66
def " serialize throws exception for invalid input #value" () {
66
67
when :
67
- JavaPrimitives .GraphQLBigInteger. getCoercing(). serialize(value)
68
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). serialize(value)
68
69
then :
69
70
thrown(CoercingSerializeException )
70
71
@@ -80,7 +81,7 @@ class ScalarsBigIntegerTest extends Specification {
80
81
@Unroll
81
82
def " parseValue throws exception for invalid input #value" () {
82
83
when :
83
- JavaPrimitives .GraphQLBigInteger. getCoercing(). parseValue(value)
84
+ ExtendedScalars .GraphQLBigInteger. getCoercing(). parseValue(value)
84
85
then :
85
86
thrown(CoercingParseValueException )
86
87
0 commit comments