SpringBoot/공부
[SpringBoot]junit5에서 junit4로 변경
PeepPeep!
2023. 12. 18. 13:41
Spring Boot 2.2.x 버전부터는 junit5가 기본으로 설정되어있음
해당 프로젝트에서는 junit4를 사용하기 위해 변경
1. build.gradle -> dependencies 안에 아래 코드 넣기
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
2.Reload