fastcampus-eatgo
fastcampus-eatgo copied to clipboard
Chapter 03. Spring Boot 실전 프로젝트 - 01. 가게 목록 에서...
error: package org.junit.runner does not exist import org.junit.runner.RunWith; 와 error: cannot find symbol @RunWith(SpringRunner.class) 이 두 에러가 계속 뜨는데 junit의 문제인지 알려주세요
혹시 해결하셨나요..? 저도 같은 오류가 뜨네요
Spring 2.2부터는 JUnit 4가 아니라 JUnit 5를 사용합니다.
강의 기준으로 가장 큰 차이점은 @RunWith
를 더이상 사용하지 않는다는 점과 @Before
대신 @BeforeEach
를 쓴다는 점입니다.
기존 질문의 답변도 참고하세요: https://github.com/ahastudio/fastcampus-eatgo/issues/9