Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit b8f113c

Browse files
committed
Fixed issues with test auto configuration
1 parent f5333e9 commit b8f113c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

graphql-spring-boot-test-autoconfigure/src/main/java/com/graphql/spring/boot/test/GraphQLTestAutoConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
@Configuration
1010
@ConditionalOnWebApplication
11-
@ConditionalOnBean(TestRestTemplate.class)
12-
@ConditionalOnClass({DispatcherServlet.class})
1311
@ConditionalOnProperty(value = "graphql.servlet.enabled", havingValue = "true", matchIfMissing = true)
1412
public class GraphQLTestAutoConfiguration {
1513

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLTestTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class GraphQLTestTemplate {
2121

2222
@Autowired
2323
private ResourceLoader resourceLoader;
24-
@Autowired
24+
@Autowired(required = false)
2525
private TestRestTemplate restTemplate;
2626
@Value("${graphql.servlet.mapping:/graphql}")
2727
private String graphqlMapping;

0 commit comments

Comments
 (0)