이 글은 Junit5.8.1, assertj3.21 기준으로 작성되었습니다. 1. assertThrows Assertions.assertThrow는 예상가능한 Exception를 던지고, 그 Exception을 반환합니다. 이 때 예외가 발생하지 않거나 다른 유형의 예외가 발생한다면 메서드는 실패하게 됩니다. 코드로 살펴보면 import static org.junit.jupiter.api.Assertions.assertThrows; @Test void test1( { Assertions.asserThrows(RuntimeException.class, () -> { voyage.test(); }); } 람다식으로 voyage.test() 메서드를 실행하여 첫 인자인 RuntimeException과 같은지 ..