Package com.graphql.spring.boot.test
Class GraphQLTestAutoConfiguration
java.lang.Object
com.graphql.spring.boot.test.GraphQLTestAutoConfiguration
@AutoConfiguration
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnProperty(value="graphql.servlet.enabled",
havingValue="true",
matchIfMissing=true)
public class GraphQLTestAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.graphql.spring.boot.test.GraphQLTestSubscriptiongraphQLTestSubscription(org.springframework.core.env.Environment environment, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String subscriptionPath) com.graphql.spring.boot.test.GraphQLTestTemplategraphQLTestUtils(org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.boot.test.web.client.TestRestTemplate restTemplate, String graphqlMapping, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
GraphQLTestAutoConfiguration
public GraphQLTestAutoConfiguration()
-
-
Method Details
-
graphQLTestUtils
@Bean @ConditionalOnMissingBean public com.graphql.spring.boot.test.GraphQLTestTemplate graphQLTestUtils(org.springframework.core.io.ResourceLoader resourceLoader, @Autowired(required=false) org.springframework.boot.test.web.client.TestRestTemplate restTemplate, @Value("${graphql.servlet.mapping:/graphql}") String graphqlMapping, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
graphQLTestSubscription
@Bean @ConditionalOnMissingBean @ConditionalOnBean(com.fasterxml.jackson.databind.ObjectMapper.class) public com.graphql.spring.boot.test.GraphQLTestSubscription graphQLTestSubscription(org.springframework.core.env.Environment environment, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Value("${graphql.servlet.subscriptions.websocket.path:subscriptions}") String subscriptionPath)
-