File tree 3 files changed +6
-15
lines changed
spring-graphql/src/test/java/org/springframework/graphql/data/query
3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 30
30
import graphql .schema .DataFetcher ;
31
31
import org .junit .jupiter .api .Disabled ;
32
32
import org .junit .jupiter .api .Test ;
33
- import org .junit .jupiter .api .extension .ExtendWith ;
34
33
import reactor .core .publisher .Mono ;
35
34
36
35
import org .springframework .beans .factory .annotation .Autowired ;
53
52
import org .springframework .orm .jpa .JpaTransactionManager ;
54
53
import org .springframework .orm .jpa .LocalContainerEntityManagerFactoryBean ;
55
54
import 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 ;
58
56
import org .springframework .transaction .PlatformTransactionManager ;
59
57
60
58
import static org .assertj .core .api .Assertions .assertThat ;
65
63
/**
66
64
* Unit tests for {@link QueryByExampleDataFetcher}.
67
65
*/
68
- @ ExtendWith (SpringExtension .class )
69
- @ ContextConfiguration
66
+ @ SpringJUnitConfig
70
67
class QueryByExampleDataFetcherJpaTests {
71
68
72
69
@ Autowired
Original file line number Diff line number Diff line change 27
27
import com .mongodb .client .MongoClients ;
28
28
import graphql .schema .DataFetcher ;
29
29
import org .junit .jupiter .api .Test ;
30
- import org .junit .jupiter .api .extension .ExtendWith ;
31
30
import org .testcontainers .containers .MongoDBContainer ;
32
31
import org .testcontainers .junit .jupiter .Container ;
33
32
import org .testcontainers .junit .jupiter .Testcontainers ;
51
50
import org .springframework .graphql .server .WebGraphQlResponse ;
52
51
import org .springframework .http .HttpHeaders ;
53
52
import 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 ;
56
54
57
55
import static org .assertj .core .api .Assertions .assertThat ;
58
56
import static org .mockito .Mockito .any ;
62
60
/**
63
61
* Unit tests for {@link QueryByExampleDataFetcher}.
64
62
*/
65
- @ ExtendWith (SpringExtension .class )
66
- @ ContextConfiguration
63
+ @ SpringJUnitConfig
67
64
@ Testcontainers (disabledWithoutDocker = true )
68
65
class QueryByExampleDataFetcherMongoDbTests {
69
66
Original file line number Diff line number Diff line change 25
25
import com .mongodb .reactivestreams .client .MongoClients ;
26
26
import graphql .schema .DataFetcher ;
27
27
import org .junit .jupiter .api .Test ;
28
- import org .junit .jupiter .api .extension .ExtendWith ;
29
28
import org .testcontainers .containers .MongoDBContainer ;
30
29
import org .testcontainers .junit .jupiter .Container ;
31
30
import org .testcontainers .junit .jupiter .Testcontainers ;
50
49
import org .springframework .graphql .server .WebGraphQlResponse ;
51
50
import org .springframework .http .HttpHeaders ;
52
51
import 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 ;
55
53
56
54
import static org .assertj .core .api .Assertions .assertThat ;
57
55
58
56
/**
59
57
* Unit tests for {@link QueryByExampleDataFetcher}.
60
58
*/
61
- @ ExtendWith (SpringExtension .class )
62
- @ ContextConfiguration
59
+ @ SpringJUnitConfig
63
60
@ Testcontainers (disabledWithoutDocker = true )
64
61
class QueryByExampleDataFetcherReactiveMongoDbTests {
65
62
You can’t perform that action at this time.
0 commit comments