웹/Spring

assertThat의 경우 junit5에서 바로 지정되지 않는 이유가 발생!

컴퓨터과학 2022. 6. 30. 22:32

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

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

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