Assertions.assertThrows(IllegalStateException.class, () -> {
memberService.join(m2); // Exception 터져야 돼.
});
혹시 junit5 쓰시는 분들은 위와 같이 수정하여서 돌려도 괜찮은 것 같습니다.
🎉진짜 깜짝할인! 모든 강의 30%🎉
상반기 안녕! 하반기엔 더 힘내시라고
모든 강의 30% 깜짝 할인 중! (~7/1)
Assertions.assertThrows(IllegalStateException.class, () -> {
memberService.join(m2); // Exception 터져야 돼.
});
혹시 junit5 쓰시는 분들은 위와 같이 수정하여서 돌려도 괜찮은 것 같습니다.
kh2mail님 좋은 내용 공유 감사합니다^^
답글