문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
springframework:springboot:test [2020/07/08 13:40] kwon37xi [Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test] |
springframework:springboot:test [2020/07/08 13:40] kwon37xi [Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test] |
||
---|---|---|---|
줄 20: | 줄 20: | ||
* 테스트 '' | * 테스트 '' | ||
* '' | * '' | ||
+ | |||
+ | <code java> | ||
+ | @SpringBootTest(classes = MyServiceConfig.class, | ||
+ | @EnableAutoConfiguration | ||
+ | class OrderServiceApplicationTests { | ||
+ | |||
+ | @Test | ||
+ | void contextLoads() { | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
===== @TestProperties ===== | ===== @TestProperties ===== |