Skip to content

Instantly share code, notes, and snippets.

@ksundong
Created March 31, 2020 07:53
Show Gist options
  • Save ksundong/31c0e83d61b76a56bdea8d14b946bf56 to your computer and use it in GitHub Desktop.
Save ksundong/31c0e83d61b76a56bdea8d14b946bf56 to your computer and use it in GitHub Desktop.
Application Context와 Logger가 잘 불러와지는지 테스트하는 코드
@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