IntelliJ에서 Maven을 사용해서 application을 run 하니까 이런 에러가 나왔다. pom.xml에서 junit dependency를 찾아보니 없어서 Add Dependency로 junit을 추가하고 refresh maven을 해주니 문제가 해결됐다.