작성
·
942
0
버전이 달라서 그런지 제이 유닛에서 런위스가 작동을 않합니다.
선생님 강의를 계속 뺑뺑이 돌고 있는 중인데 하면 할수록 에러가 발생됩니다 ㅠㅠ
> Task :compileTestJava FAILED
C:\workspace\jdb\src\test\java\kr\co\emofact\jdb\MemberRepositoryTest.java:8: error: package org.junit.runner does not exist
import org.junit.runner.RunWith;
^
C:\workspace\jdb\src\test\java\kr\co\emofact\jdb\MemberRepositoryTest.java:17: error: cannot find symbol
@RunWith(SpringRunner.class)
^
symbol: class RunWith
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileTestJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 585ms
3 actionable tasks: 1 executed, 2 up-to-date
답변 1
1
어이쿠! 고생하셨습니다.
제가 메뉴얼에 버전 부분을 좀 강하게 보강했어야 했네요.
혹시 스프링 부트 버전을 어떤 것으로 선택하셨는지요?
2.2.x를 선택하면 junit 버전이 5로 올라가서 정상 동작하지 않습니다. gradle 설정도 달라지구요.
2.1.x( 현재 확인해보니 2.1.14 네요^^) 버전을 선택해서 다시 만들고 진행해보시겠어요?