use of graphql.GraphQLContext in project spring-graphql by spring-projects.
the class DataFetchingEnvironmentArgumentResolverTests method resolveGraphQlContext.
@Test
void resolveGraphQlContext() {
GraphQLContext context = GraphQLContext.newContext().build();
DataFetchingEnvironment environment = environment().graphQLContext(context).build();
Object actual = this.resolver.resolveArgument(parameter(0), environment);
assertThat(actual).isSameAs(context);
}
Aggregations