Assertions.assertThrows(IllegalStateException.class, () -> {
memberService.join(m2); // Exception 터져야 돼.
});
혹시 junit5 쓰시는 분들은 위와 같이 수정하여서 돌려도 괜찮은 것 같습니다.
🔥딱 8일간! 인프런x토스x허먼밀러 역대급 혜택
Assertions.assertThrows(IllegalStateException.class, () -> {
memberService.join(m2); // Exception 터져야 돼.
});
혹시 junit5 쓰시는 분들은 위와 같이 수정하여서 돌려도 괜찮은 것 같습니다.
kh2mail님 좋은 내용 공유 감사합니다^^
답글