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

Commit ef5f825

Browse files
committed
fix(): disable component scan default filters in GraphQLTest
With default filters enabled, include filters are applied in addition to the default filters (@component, ...).
1 parent 75a4210 commit ef5f825

File tree

1 file changed

+6
-1
lines changed
  • graphql-spring-boot-test-autoconfigure/src/main/java/com/graphql/spring/boot/test

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* <p>
6060
* If you are looking to load your full application configuration and use
6161
* {@link com.graphql.spring.boot.test.GraphQLTestTemplate GraphQLTestTemplate} you should consider
62-
* {@link SpringBootTest @SpringBootTest} rather thatn this annotation.
62+
* {@link SpringBootTest @SpringBootTest} rather than this annotation.
6363
*
6464
* @author Michiel Oliemans
6565
* @since 5.0.2
@@ -101,6 +101,11 @@ Class<?>[] classes() default {
101101
JacksonAutoConfiguration.class
102102
};
103103

104+
@AliasFor(
105+
annotation = ComponentScan.class
106+
)
107+
boolean useDefaultFilters() default false;
108+
104109
@AliasFor(
105110
annotation = ComponentScan.class
106111
)

0 commit comments

Comments
 (0)