org.test4j.hamcrest.iassert.common.intf
接口 IComparableAssert<T,E extends IAssert>

类型参数:
E -
所有已知子接口:
IDateAssert<T>, IDoubleAssert, IFloatAssert, IIntegerAssert, ILongAssert, INumberAssert<T,E>, IShortAssert, IStringAssert
所有已知实现类:
ComparableAssert, DateAssert, DoubleAssert, FloatAssert, IntegerAssert, LongAssert, NumberAssert, ShortAssert, StringAssert

public interface IComparableAssert<T,E extends IAssert>

类型值可以比较大小的断言

作者:
darui.wudr T extends Comparable

方法摘要
 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.
 

方法详细信息

isLt

E isLt(T max)
want the actual number is less than the expected number.
断言对象小于期望值max

参数:
max - 期望最大值
返回:

isLe

E isLe(T max)
want the actual number is less than or equal to the expected number.
断言对象小于等于期望值max

参数:
max - 期望最大值
返回:

isGt

E isGt(T min)
want the actual number is greater than the expected number.
断言对象大于期望值min

参数:
min - 期望最小值
返回:

isGe

E isGe(T min)
want the actual number is greater than or equal to the expected number.
断言对象大于等于期望值min

参数:
min - 期望最小值
返回:

isBetween

E isBetween(T min,
            T max)
断言对象在最小值和最大值之间(包括最大值和最小值)

参数:
min - 期望最小值
max - 期望最大值
返回:

isLessThan

E isLessThan(T max)
want the actual number is less than the expected number.
same as isLt(Object)


isLessEqual

E isLessEqual(T max)
want the actual number is less than or equal to the expected number.
same as isLe(Object)


isGreaterThan

E isGreaterThan(T min)
want the actual number is greater than the expected number.
same as isGt(Object)


isGreaterEqual

E isGreaterEqual(T min)
want the actual number is greater than or equal to the expected number.
same as isGe(Object)



Copyright © 2013. All rights reserved.