This post shows how to test for expected exceptions using JUnit 5. If you're still on JUnit 4 ... import static org.hamcrest.CoreMatchers.*;.
確定! 回上一頁