Skip to content

Commit a2304fa

Browse files
authored
Merge pull request #104 from guy120494/master
replaced the static method graphqlannotations.object with the non static method graphqlannotations.getObject
2 parents b72ccde + e1b2ea3 commit a2304fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/graphql/annotations/GraphQLSimpleSchemaTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public User defaultUser2() {
6363
@Test
6464
public void detachedCall() {
6565
GraphQLAnnotations graphQLAnnotations = new GraphQLAnnotations();
66-
GraphQLObjectType queryObject = graphQLAnnotations.object(Query.class);
66+
GraphQLObjectType queryObject = graphQLAnnotations.getObject(Query.class);
6767
GraphQL graphql = GraphQL.newGraphQL(newSchema().query(queryObject).build()).build();
6868

6969
ExecutionResult result = graphql.execute("{ defaultUser{ name } }");
@@ -74,7 +74,7 @@ public void detachedCall() {
7474
@Test
7575
public void staticCall() {
7676
GraphQLAnnotations graphQLAnnotations = new GraphQLAnnotations();
77-
GraphQLObjectType queryObject = graphQLAnnotations.object(Query.class);
77+
GraphQLObjectType queryObject = graphQLAnnotations.getObject(Query.class);
7878
GraphQL graphql = GraphQL.newGraphQL(newSchema().query(queryObject).build()).build();
7979

8080
ExecutionResult result = graphql.execute("{ defaultUser2{ name } }");

0 commit comments

Comments
 (0)