Spring 개발환경/eclipse
The import org.junit.Assert cannot be resolved 에러
ehdtnn
2021. 4. 28. 14:00
반응형
참고: 코드로 배우는 스프링 웹 프로젝트
예제소스명: MySQLConnectionTest
에러현상: 하기 소스 import 시 "The import org.junit cannot be resolved" 발생
조치방법: junit library 추가
import org.junit.Test ;
조치상세:
1. 프로젝트 우클릭 > Build Path > Configure Build Path
2. Java Build Path > Libraries > Add Library
3. JUnit 선택 > next > 알맞은 junit버전 선택 (ex. JUnit4) > finish > Apply and Close
출처: https://skyfox83.tistory.com/5 [일상, 기록]
반응형