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

+ Recent posts