File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
main/java/org/springframework/graphql/data/pagination Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 55
55
* @author Rossen Stoyanchev
56
56
* @since 1.2
57
57
*/
58
- public final class ConnectionTypeVisitor extends GraphQLTypeVisitorStub {
58
+ public final class ConnectionFieldTypeVisitor extends GraphQLTypeVisitorStub {
59
59
60
60
private final ConnectionAdapter adapter ;
61
61
62
62
63
- private ConnectionTypeVisitor (ConnectionAdapter adapter ) {
63
+ private ConnectionFieldTypeVisitor (ConnectionAdapter adapter ) {
64
64
Assert .notNull (adapter , "ConnectionAdapter is required" );
65
65
this .adapter = adapter ;
66
66
}
@@ -102,9 +102,9 @@ private static boolean isConnectionField(GraphQLFieldDefinition fieldDefinition)
102
102
* @param adapters the adapters to use
103
103
* @return the type visitor
104
104
*/
105
- public static ConnectionTypeVisitor create (List <ConnectionAdapter > adapters ) {
105
+ public static ConnectionFieldTypeVisitor create (List <ConnectionAdapter > adapters ) {
106
106
Assert .notEmpty (adapters , "Expected at least one ConnectionAdapter" );
107
- return new ConnectionTypeVisitor (ConnectionAdapter .from (adapters ));
107
+ return new ConnectionFieldTypeVisitor (ConnectionAdapter .from (adapters ));
108
108
}
109
109
110
110
Original file line number Diff line number Diff line change 31
31
import static org .assertj .core .api .Assertions .assertThat ;
32
32
33
33
/**
34
- * Unit tests for {@link ConnectionTypeVisitor }.
34
+ * Unit tests for {@link ConnectionFieldTypeVisitor }.
35
35
*
36
36
* @author Rossen Stoyanchev
37
37
*/
38
- public class ConnectionTypeVisitorTests {
38
+ public class ConnectionFieldTypeVisitorTests {
39
39
40
40
41
41
@ Test
@@ -76,7 +76,7 @@ void dataFetcherDecoration() throws Exception {
76
76
ExecutionGraphQlResponse response = GraphQlSetup .schemaContent (schemaContent )
77
77
.dataFetcher ("Query" , "books" , env -> BookSource .books ())
78
78
.typeDefinitionRegistryConfigurer (new ConnectionTypeGenerator ()::generateConnectionTypes )
79
- .typeVisitor (ConnectionTypeVisitor .create (List .of (adapter )))
79
+ .typeVisitor (ConnectionFieldTypeVisitor .create (List .of (adapter )))
80
80
.toGraphQlService ()
81
81
.execute (TestExecutionRequest .forDocument (document ))
82
82
.block ();
You can’t perform that action at this time.
0 commit comments