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>


嵌套类摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
ComparableAssert(Class<? extends IAssert> clazE)
           
ComparableAssert(T value, Class<? extends IAssert> clazE)
           
 
方法摘要
 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.ListAssert 继承的方法
eqIgnoreOrder, isEqualTo, propertyEqMap, propertyMatch, reflectionEqMap, reflectionEqMap
 
从类 org.test4j.hamcrest.iassert.common.impl.SizeAssert 继承的方法
sizeBetween, sizeEq, sizeGe, sizeGt, sizeIs, sizeLe, sizeLt, sizeNe
 
从类 org.test4j.hamcrest.iassert.common.impl.ReflectionAssert 继承的方法
eqByReflect, eqIgnoreAll, eqIgnoreDefault, propertyEq, propertyEq, propertyEq, propertyEqMap, propertyMatch, reflectionEq, reflectionEqMap
 
从类 org.test4j.hamcrest.iassert.common.impl.ListHasItemsAssert 继承的方法
allItemsMatchAll, allItemsMatchAny, anyItemsMatchAll, anyItemsMatchAny, hasAllItems, hasAnyItems, hasItems, hasItems, match
 
从类 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
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的方法
assertThat, assertThat, describeTo, equals, getValueClaz, hashCode, matches, toString, wanted, wanted
 
从类 ext.test4j.hamcrest.BaseMatcher 继承的方法
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
从接口 org.test4j.hamcrest.iassert.common.intf.IAssert 继承的方法
wanted, wanted
 
从接口 ext.test4j.hamcrest.Matcher 继承的方法
describeMismatch, matches
 
从接口 ext.test4j.hamcrest.SelfDescribing 继承的方法
describeTo
 
从接口 org.test4j.hamcrest.iassert.common.intf.ISizedAssert 继承的方法
sizeBetween, sizeEq, sizeGe, sizeGt, sizeIs, sizeLe, sizeLt, sizeNe
 

构造方法详细信息

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.