Skip to content

Commit 4007e99

Browse files
committed
rename StaticEnumValuesProvider to NaturalEnumProvider
1 parent 5672d82 commit 4007e99

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/main/java/graphql/schema/idl/StaticEnumValuesProvider.java renamed to src/main/java/graphql/schema/idl/NaturalEnumValuesProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
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
}

src/test/groovy/graphql/schema/DataFetcherSelectionTest.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import graphql.language.Field
88
import graphql.schema.idl.RuntimeWiring
99
import graphql.schema.idl.SchemaGenerator
1010
import graphql.schema.idl.SchemaParser
11-
import spock.lang.Ignore
1211
import spock.lang.Specification
1312

1413
import 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()

src/test/groovy/graphql/schema/idl/SchemaGeneratorTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)