public abstract class AssertUtils
extends java.lang.Object
Assert| 限定符和类型 | 类和说明 |
|---|---|
static interface |
AssertUtils.Executor
no arg no return ,
differ from
Consumer
or Supplier |
| 构造器和说明 |
|---|
AssertUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
assertException(AssertUtils.Executor executor)
assert there will be a exception in
AssertUtils.Executor |
static void |
assertException(AssertUtils.Executor executor,
java.lang.String message)
assert there will be a exception in
AssertUtils.Executor with the given message. |
public static void assertException(AssertUtils.Executor executor, java.lang.String message)
AssertUtils.Executor with the given message.executor - the test content need to executemessage - the identifying message for the AssertionError (null okay)public static void assertException(AssertUtils.Executor executor)
AssertUtils.Executorexecutor - the test content need to execute