public interface HoneyAssert
| Modifier and Type | Method and Description |
|---|---|
default void |
assertIsNull(Object obj)
断言 为空
|
default void |
assertIsTrue(boolean expression)
断言表达式
|
default void |
assertNotEmpty(Collection<?> collection)
断言集合非空
|
default void |
assertNotEmpty(Map<?,?> map)
断言map非空
|
default void |
assertNotNull(Object obj)
断言对象非空
|
HoneyBaseException |
newException(Object... args)
创建异常
|
HoneyBaseException |
newException(Throwable t,
Object... args)
创建异常
|
default void |
throwException()
扔出异常
|
HoneyBaseException newException(Object... args)
args - 参数HoneyBaseException newException(Throwable t, Object... args)
t - Throwableargs - 任意参数default void throwException()
default void assertNotNull(Object obj)
obj - 待判断对象default void assertIsNull(Object obj)
obj - 断言对象default void assertIsTrue(boolean expression)
expression - 断言表达式default void assertNotEmpty(@Nullable
Collection<?> collection)
collection - 集合default void assertNotEmpty(@Nullable
Map<?,?> map)
map - mapCopyright © 2021. All rights reserved.