com.graphql.spring.boot.test.GraphQLTestAutoConfiguration Maven / Gradle / Ivy
package com.graphql.spring.boot.test;
import org.springframework.boot.autoconfigure.condition.*;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;
@Configuration
@ConditionalOnWebApplication
@ConditionalOnProperty(value = "graphql.servlet.enabled", havingValue = "true", matchIfMissing = true)
public class GraphQLTestAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public GraphQLTestTemplate graphQLTestUtils() {
return new GraphQLTestTemplate();
}
}