类 Assert
java.lang.Object
com.baomidou.mybatisplus.extension.api.Assert
@Deprecated public class Assert extends Object
已过时。
REST API 业务断言
参考:org.junit.Assert
- 从以下版本开始:
- 2018-06-05
- 作者:
- hubin
-
构造器概要
构造器 限定符 构造器 说明 protectedAssert()已过时。 -
方法概要
修饰符和类型 方法 说明 static voideq(Object obj1, Object obj2, IErrorCode errorCode)已过时。obj1 eq obj2static voidfail(boolean condition, IErrorCode errorCode)已过时。static voidfail(boolean condition, String message)已过时。static voidfail(boolean condition, String message, Object[] args, org.springframework.context.MessageSource messageSource)已过时。static voidfail(boolean condition, String message, org.springframework.context.MessageSource messageSource)已过时。static voidfail(IErrorCode errorCode)已过时。失败结果static voidfail(String message)已过时。static voidfail(String message, Object[] args, org.springframework.context.MessageSource messageSource)已过时。返回多语言异常消息static voidfail(String message, org.springframework.context.MessageSource messageSource)已过时。static voidge(Integer num1, Integer num2, IErrorCode errorCode)已过时。num1大于等于num2static voidgeZero(Integer num, IErrorCode errorCode)已过时。大于等于Ostatic voidgt(Integer num1, Integer num2, IErrorCode errorCode)已过时。num1大于num2static voidgtZero(Integer num, IErrorCode errorCode)已过时。大于Ostatic voidisAssignable(Class<?> superType, Class<?> subType, IErrorCode errorCode)已过时。static voidisFalse(boolean condition, IErrorCode errorCode)已过时。static voidisInstanceOf(Class<?> type, Object obj, IErrorCode errorCode)已过时。static voidisNull(IErrorCode errorCode, Object... conditions)已过时。static voidisTrue(boolean condition, IErrorCode errorCode)已过时。static voidnoNullElements(Object[] array, IErrorCode errorCode)已过时。static voidnotEmpty(Object[] array, IErrorCode errorCode)已过时。static voidnotEmpty(Collection<?> collection, IErrorCode errorCode)已过时。static voidnotEmpty(Map<?,?> map, IErrorCode errorCode)已过时。static voidnotNull(IErrorCode errorCode, Object... conditions)已过时。
-
构造器详细资料
-
Assert
protected Assert()已过时。
-
-
方法详细资料
-
gtZero
已过时。大于O -
geZero
已过时。大于等于O -
gt
已过时。num1大于num2 -
ge
已过时。num1大于等于num2 -
eq
已过时。obj1 eq obj2 -
isTrue
已过时。 -
isFalse
已过时。 -
isNull
已过时。 -
notNull
已过时。 -
fail
已过时。失败结果- 参数:
errorCode- 异常错误码
-
fail
已过时。 -
fail
已过时。 -
fail
已过时。 -
fail
public static void fail(String message, Object[] args, org.springframework.context.MessageSource messageSource)已过时。返回多语言异常消息- 参数:
message- 多语言消息 KEYargs- 多语言提示默认参数数组对象messageSource- 多语言资源对象
-
fail
public static void fail(boolean condition, String message, Object[] args, org.springframework.context.MessageSource messageSource)已过时。 -
fail
已过时。 -
fail
public static void fail(boolean condition, String message, org.springframework.context.MessageSource messageSource)已过时。 -
notEmpty
已过时。 -
noNullElements
已过时。 -
notEmpty
已过时。 -
notEmpty
已过时。 -
isInstanceOf
已过时。 -
isAssignable
已过时。
-