File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
spring-graphql/src/test/java/org/springframework/graphql/data/query Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 3030import graphql .schema .DataFetcher ;
3131import org .junit .jupiter .api .Disabled ;
3232import org .junit .jupiter .api .Test ;
33- import org .junit .jupiter .api .extension .ExtendWith ;
3433import reactor .core .publisher .Mono ;
3534
3635import org .springframework .beans .factory .annotation .Autowired ;
5352import org .springframework .orm .jpa .JpaTransactionManager ;
5453import org .springframework .orm .jpa .LocalContainerEntityManagerFactoryBean ;
5554import org .springframework .orm .jpa .vendor .HibernateJpaVendorAdapter ;
56- import org .springframework .test .context .ContextConfiguration ;
57- import org .springframework .test .context .junit .jupiter .SpringExtension ;
55+ import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
5856import org .springframework .transaction .PlatformTransactionManager ;
5957
6058import static org .assertj .core .api .Assertions .assertThat ;
6563/**
6664 * Unit tests for {@link QueryByExampleDataFetcher}.
6765 */
68- @ ExtendWith (SpringExtension .class )
69- @ ContextConfiguration
66+ @ SpringJUnitConfig
7067class QueryByExampleDataFetcherJpaTests {
7168
7269 @ Autowired
Original file line number Diff line number Diff line change 2727import com .mongodb .client .MongoClients ;
2828import graphql .schema .DataFetcher ;
2929import org .junit .jupiter .api .Test ;
30- import org .junit .jupiter .api .extension .ExtendWith ;
3130import org .testcontainers .containers .MongoDBContainer ;
3231import org .testcontainers .junit .jupiter .Container ;
3332import org .testcontainers .junit .jupiter .Testcontainers ;
5150import org .springframework .graphql .server .WebGraphQlResponse ;
5251import org .springframework .http .HttpHeaders ;
5352import org .springframework .lang .Nullable ;
54- import org .springframework .test .context .ContextConfiguration ;
55- import org .springframework .test .context .junit .jupiter .SpringExtension ;
53+ import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
5654
5755import static org .assertj .core .api .Assertions .assertThat ;
5856import static org .mockito .Mockito .any ;
6260/**
6361 * Unit tests for {@link QueryByExampleDataFetcher}.
6462 */
65- @ ExtendWith (SpringExtension .class )
66- @ ContextConfiguration
63+ @ SpringJUnitConfig
6764@ Testcontainers (disabledWithoutDocker = true )
6865class QueryByExampleDataFetcherMongoDbTests {
6966
Original file line number Diff line number Diff line change 2525import com .mongodb .reactivestreams .client .MongoClients ;
2626import graphql .schema .DataFetcher ;
2727import org .junit .jupiter .api .Test ;
28- import org .junit .jupiter .api .extension .ExtendWith ;
2928import org .testcontainers .containers .MongoDBContainer ;
3029import org .testcontainers .junit .jupiter .Container ;
3130import org .testcontainers .junit .jupiter .Testcontainers ;
5049import org .springframework .graphql .server .WebGraphQlResponse ;
5150import org .springframework .http .HttpHeaders ;
5251import org .springframework .lang .Nullable ;
53- import org .springframework .test .context .ContextConfiguration ;
54- import org .springframework .test .context .junit .jupiter .SpringExtension ;
52+ import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
5553
5654import static org .assertj .core .api .Assertions .assertThat ;
5755
5856/**
5957 * Unit tests for {@link QueryByExampleDataFetcher}.
6058 */
61- @ ExtendWith (SpringExtension .class )
62- @ ContextConfiguration
59+ @ SpringJUnitConfig
6360@ Testcontainers (disabledWithoutDocker = true )
6461class QueryByExampleDataFetcherReactiveMongoDbTests {
6562
You can’t perform that action at this time.
0 commit comments