Created
March 31, 2020 07:53
-
-
Save ksundong/31c0e83d61b76a56bdea8d14b946bf56 to your computer and use it in GitHub Desktop.
Application Context와 Logger가 잘 불러와지는지 테스트하는 코드
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Autowired | |
private ApplicationContext applicationContext; | |
private static final Logger log = LoggerFactory.getLogger(DustApplicationTests.class); | |
@Test | |
void contextLoads() { | |
assertThat(applicationContext).isNotNull(); | |
log.debug("Application Context를 정상적으로 불러왔습니다."); | |
} | |
@Test | |
void loggerLoads() { | |
assertThat(log).isNotNull(); | |
log.debug("Logger를 정상적으로 불러왔습니다."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment