File tree Expand file tree Collapse file tree
test/groovy/graphql/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public GraphQLInputType getType() {
101101 *
102102 * @return a value of type T which is the java value of the input field default
103103 */
104- public static <T > T getArgumentDefaultValue (GraphQLInputObjectField inputObjectField ) {
104+ public static <T > T getInputFieldDefaultValue (GraphQLInputObjectField inputObjectField ) {
105105 return getInputValueImpl (inputObjectField .getType (), inputObjectField .getInputFieldDefaultValue ());
106106 }
107107
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class GraphQLInputObjectFieldTest extends Specification {
6565 .defaultValueProgrammatic(1.23d )
6666 .build()
6767 def inputValue = startingField. getInputFieldDefaultValue()
68- def resolvedValue = GraphQLInputObjectField . getArgumentDefaultValue (startingField)
68+ def resolvedValue = GraphQLInputObjectField . getInputFieldDefaultValue (startingField)
6969
7070 then :
7171 inputValue. isExternal()
@@ -80,7 +80,7 @@ class GraphQLInputObjectFieldTest extends Specification {
8080 .defaultValueLiteral(FloatValue . newFloatValue(). value(1.23d ). build())
8181 .build()
8282 inputValue = startingField. getInputFieldDefaultValue()
83- resolvedValue = GraphQLInputObjectField . getArgumentDefaultValue (startingField)
83+ resolvedValue = GraphQLInputObjectField . getInputFieldDefaultValue (startingField)
8484
8585 then :
8686 inputValue. isLiteral()
@@ -94,7 +94,7 @@ class GraphQLInputObjectFieldTest extends Specification {
9494 .description(" F1_description" )
9595 .build()
9696 inputValue = startingField. getInputFieldDefaultValue()
97- resolvedValue = GraphQLInputObjectField . getArgumentDefaultValue (startingField)
97+ resolvedValue = GraphQLInputObjectField . getInputFieldDefaultValue (startingField)
9898
9999 then :
100100 inputValue. isNotSet()
You can’t perform that action at this time.
0 commit comments