Throwable exceptionThatWasThrown = assertThrows(NullPointerException.class, () -> { codeThatThrows; }); assertThat(exceptionThatWasThrown.
確定! 回上一頁