使用AssertJ編寫斷言 ... assertThat; import static org.assertj.core.api. ... 了捕捉待測系統拋出的異常的方法,並通過使用Hamcrest matcher來編寫捕捉異常的斷言。
確定! 回上一頁