The JUnit method to do this is Assertions. ... codeThatThrows } assertThat(exceptionThatWasThrown.message, equalTo("Message I expected to be ...
確定! 回上一頁