assertThat의 경우 junit5에서 바로 지정되지 않아서 

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;

위의 라이브러리를 추가해줘서 사용하면된다.

' > Spring' 카테고리의 다른 글

spring gradle junit4->junit5 설정  (0) 2022.07.03
Rest Api 란?  (0) 2022.07.01
<Spring>Entity  (0) 2020.12.14
<Spring>JPA  (0) 2020.12.14
<Spring>Lombok?  (0) 2020.12.14

+ Recent posts