File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
main/java/graphql/schema/idl
test/groovy/graphql/schema Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 99 * @param <T>
1010 */
1111@ PublicApi
12- public class StaticEnumValuesProvider <T extends Enum <T >> implements EnumValuesProvider {
12+ public class NaturalEnumValuesProvider <T extends Enum <T >> implements EnumValuesProvider {
1313
1414
1515 private final Class <T > enumType ;
1616
17- public StaticEnumValuesProvider (Class <T > enumType ) {
17+ public NaturalEnumValuesProvider (Class <T > enumType ) {
1818 Assert .assertNotNull (enumType , "enumType can't be null" );
1919 this .enumType = enumType ;
2020 }
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import graphql.language.Field
88import graphql.schema.idl.RuntimeWiring
99import graphql.schema.idl.SchemaGenerator
1010import graphql.schema.idl.SchemaParser
11- import spock.lang.Ignore
1211import spock.lang.Specification
1312
1413import java.util.stream.Collectors
@@ -74,7 +73,6 @@ class DataFetcherSelectionTest extends Specification {
7473 return new SelectionCapturingDataFetcher (delegate, captureList)
7574 }
7675
77-
7876 RuntimeWiring wiring = RuntimeWiring . newRuntimeWiring()
7977 .type(newTypeWiring(" QueryType" )
8078 .dataFetchers(
@@ -98,8 +96,6 @@ class DataFetcherSelectionTest extends Specification {
9896
9997 def executableStarWarsSchema = load(" starWarsSchema.graphqls" , wiring)
10098
101- // TODO: fix me later
102- @Ignore
10399 def " field selection can be captured via data environment" () {
104100
105101 captureList. clear()
Original file line number Diff line number Diff line change @@ -813,7 +813,7 @@ class SchemaGeneratorTest extends Specification {
813813 query: Query
814814 }
815815 """
816- def enumValuesProvider = new StaticEnumValuesProvider <ExampleEnum > (ExampleEnum . class);
816+ def enumValuesProvider = new NaturalEnumValuesProvider <ExampleEnum > (ExampleEnum . class);
817817 when :
818818
819819 def wiring = RuntimeWiring . newRuntimeWiring()
You can’t perform that action at this time.
0 commit comments