org.test4j.hamcrest.iassert.common.impl
类 ComparableAssert<T,E extends IAssert>
java.lang.Object
ext.test4j.hamcrest.BaseMatcher<T>
org.test4j.hamcrest.iassert.common.impl.Assert<T,E>
org.test4j.hamcrest.iassert.common.impl.BaseAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.ListHasItemsAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.ReflectionAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.SizeAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.ListAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.AllAssert<T,E>
org.test4j.hamcrest.iassert.common.impl.ComparableAssert<T,E>
- 所有已实现的接口:
- Matcher<T>, SelfDescribing, IAssert<T,E>, IBaseAssert<T,E>, IComparableAssert<T,E>, IListAssert<T,E>, IListHasItemsAssert<E>, IReflectionAssert<E>, ISizedAssert<E>
- 直接已知子类:
- DateAssert, NumberAssert, StringAssert
public class ComparableAssert<T,E extends IAssert>
- extends AllAssert<T,E>
- implements IComparableAssert<T,E>
|
方法摘要 |
E |
isBetween(T min,
T max)
断言对象在最小值和最大值之间(包括最大值和最小值) |
E |
isGe(T min)
want the actual number is greater than or equal to the expected number. |
E |
isGreaterEqual(T min)
want the actual number is greater than or equal to the expected number. |
E |
isGreaterThan(T min)
want the actual number is greater than the expected number. |
E |
isGt(T min)
want the actual number is greater than the expected number. |
E |
isLe(T max)
want the actual number is less than or equal to the expected number. |
E |
isLessEqual(T max)
want the actual number is less than or equal to the expected number. |
E |
isLessThan(T max)
want the actual number is less than the expected number. |
E |
isLt(T max)
want the actual number is less than the expected number. |
| 从类 org.test4j.hamcrest.iassert.common.impl.BaseAssert 继承的方法 |
all, any, any, clazIs, clazIsSubFrom, eq, eqToString, eqToString, in, isEqualTo, isEqualTo, isNull, isNull, not, notAll, notAny, notEqualTo, notIn, notNull, notNull, same, toStringAssert |
ComparableAssert
public ComparableAssert(Class<? extends IAssert> clazE)
ComparableAssert
public ComparableAssert(T value,
Class<? extends IAssert> clazE)
isGe
public E isGe(T min)
- 从接口
IComparableAssert 复制的描述
- want the actual number is greater than or equal to the expected number.
断言对象大于等于期望值min
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isGe
- 参数:
min - 期望最小值
- 返回:
isGt
public E isGt(T min)
- 从接口
IComparableAssert 复制的描述
- want the actual number is greater than the expected number.
断言对象大于期望值min
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isGt
- 参数:
min - 期望最小值
- 返回:
isLe
public E isLe(T max)
- 从接口
IComparableAssert 复制的描述
- want the actual number is less than or equal to the expected number.
断言对象小于等于期望值max
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isLe
- 参数:
max - 期望最大值
- 返回:
isLt
public E isLt(T max)
- 从接口
IComparableAssert 复制的描述
- want the actual number is less than the expected number.
断言对象小于期望值max
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isLt
- 参数:
max - 期望最大值
- 返回:
isBetween
public E isBetween(T min,
T max)
- 从接口
IComparableAssert 复制的描述
- 断言对象在最小值和最大值之间(包括最大值和最小值)
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isBetween
- 参数:
min - 期望最小值max - 期望最大值
- 返回:
isLessThan
public E isLessThan(T max)
- 从接口
IComparableAssert 复制的描述
- want the actual number is less than the expected number.
same as IComparableAssert.isLt(Object)
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isLessThan
isLessEqual
public E isLessEqual(T max)
- 从接口
IComparableAssert 复制的描述
- want the actual number is less than or equal to the expected number.
same as IComparableAssert.isLe(Object)
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isLessEqual
isGreaterThan
public E isGreaterThan(T min)
- 从接口
IComparableAssert 复制的描述
- want the actual number is greater than the expected number.
same as IComparableAssert.isGt(Object)
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isGreaterThan
isGreaterEqual
public E isGreaterEqual(T min)
- 从接口
IComparableAssert 复制的描述
- want the actual number is greater than or equal to the expected number.
same as IComparableAssert.isGe(Object)
- 指定者:
- 接口
IComparableAssert<T,E extends IAssert> 中的 isGreaterEqual
Copyright © 2013. All rights reserved.