This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-34
lines changed
graphql-spring-boot-autoconfigure/src
main/java/com/oembedler/moon/graphql/boot
test/java/com/oembedler/moon/graphql/boot/test/graphqlJavaTools Expand file tree Collapse file tree 3 files changed +14
-34
lines changed Original file line number Diff line number Diff line change 22
33import graphql .schema .idl .SchemaDirectiveWiring ;
44
5- public interface SchemaDirective {
5+ public class SchemaDirective {
66
7- String getName ();
7+ private final String name ;
8+ private final SchemaDirectiveWiring directive ;
89
9- SchemaDirectiveWiring getDirective ();
10+ public SchemaDirective (String name , SchemaDirectiveWiring directive ) {
11+ this .name = name ;
12+ this .directive = directive ;
13+ }
14+
15+ public String getName () {
16+ return name ;
17+ }
1018
11- static SchemaDirective create ( String name , SchemaDirectiveWiring directive ) {
12- return new SchemaDirectiveImpl ( name , directive ) ;
19+ public SchemaDirectiveWiring getDirective ( ) {
20+ return directive ;
1321 }
1422
1523}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77import graphql .schema .GraphQLObjectType ;
88import graphql .schema .idl .SchemaDirectiveWiring ;
99import graphql .schema .idl .SchemaDirectiveWiringEnvironment ;
10- import graphql .schema .idl .SchemaParser ;
1110import org .junit .Test ;
1211import org .springframework .context .annotation .Bean ;
1312import org .springframework .context .annotation .Configuration ;
1413import org .springframework .stereotype .Component ;
1514
16- import static org .junit .Assert .assertNotNull ;
17-
1815public class GraphQLToolsDirectiveTest extends AbstractAutoConfigurationTest {
1916
2017 public GraphQLToolsDirectiveTest () {
@@ -39,7 +36,7 @@ String schemaLocationTest(String id) {
3936
4037 @ Bean
4138 public SchemaDirective uppercaseDirective () {
42- return SchemaDirective . create ("uppercase" , new SchemaDirectiveWiring () {
39+ return new SchemaDirective ("uppercase" , new SchemaDirectiveWiring () {
4340 @ Override
4441 public GraphQLObjectType onObject (SchemaDirectiveWiringEnvironment <GraphQLObjectType > environment ) {
4542 return null ;
You can’t perform that action at this time.
0 commit comments