81,092
社区成员
发帖
与我相关
我的任务
分享
/**
* Fails a test with the given message.
*
* @param message the identifying message for the {@link AssertionError} (<code>null</code>
* okay)
* @see AssertionError
*/
static public void fail(String message) {
if (message == null) {
throw new fail();
}
throw new fail(message);
}
/**
* Fails a test with no message.
*/
static public void fail() {
fail(null);
}