JUnit 5 provides the assertThrows() method that asserts a piece of code throws an exception of an expected type and returns the exception:.
確定! 回上一頁