org.test4j.hamcrest.iassert.common.impl
类 SizeAssert<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>
所有已实现的接口:
Matcher<T>, SelfDescribing, IAssert<T,E>, IBaseAssert<T,E>, IListHasItemsAssert<E>, IReflectionAssert<E>, ISizedAssert<E>
直接已知子类:
ListAssert

public class SizeAssert<T,E extends IAssert>
extends ReflectionAssert<T,E>
implements IAssert<T,E>, ISizedAssert<E>


嵌套类摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
SizeAssert(Class<? extends IAssert> clazE)
           
SizeAssert(T value, Class<? extends IAssert> clazE)
           
 
方法摘要
 E sizeBetween(int min, int max)
          want: the size of map(collection/array) item is greater than or equal to the number min, and is less than or equal to the number max.
 E sizeEq(int size)
          want: the size of map(collection/array) item is equal to the number size.
 E sizeGe(int size)
          want: the size of map(collection/array) item is greater than or equal to the number size.
 E sizeGt(int size)
          want: the size of map(collection/array) item is greater than the number size.
 E sizeIs(int size)
          want: the size of map(collection/array) item is equal to the number size.
 E sizeLe(int size)
          want: the size of map(collection/array) item is less than or equal to the number size.
 E sizeLt(int size)
          want: the size of map(collection/array) item is less than the number size.
 E sizeNe(int size)
          want: the size of map(collection/array) item isn't equal to the number size.
 
从类 org.test4j.hamcrest.iassert.common.impl.ReflectionAssert 继承的方法
eqByReflect, eqIgnoreAll, eqIgnoreDefault, eqIgnoreOrder, 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
 

构造方法详细信息

SizeAssert

public SizeAssert(Class<? extends IAssert> clazE)

SizeAssert

public SizeAssert(T value,
                  Class<? extends IAssert> clazE)
方法详细信息

sizeIs

public E sizeIs(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is equal to the number size.
same as ISizedAssert.sizeEq(int)

数组长度或collection中元素个数等于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeIs
参数:
size - 期望值
返回:

sizeEq

public E sizeEq(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is equal to the number size.
same as ISizedAssert.sizeIs(int)

数组长度或collection中元素个数等于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeEq
参数:
size - 期望值
返回:

sizeGe

public E sizeGe(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is greater than or equal to the number size.

数组长度或collection中元素个数大于等于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeGe
参数:
size - 期望值
返回:

sizeGt

public E sizeGt(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is greater than the number size.

数组长度或collection中元素个数大于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeGt
参数:
size - 期望值
返回:

sizeLe

public E sizeLe(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is less than or equal to the number size.

数组长度或collection中元素个数小于等于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeLe
参数:
size - 期望值
返回:

sizeLt

public E sizeLt(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is less than the number size.

数组长度或collection中元素个数小于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeLt
参数:
size - 期望值
返回:

sizeBetween

public E sizeBetween(int min,
                     int max)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item is greater than or equal to the number min, and is less than or equal to the number max.

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeBetween
返回:

sizeNe

public E sizeNe(int size)
从接口 ISizedAssert 复制的描述
want: the size of map(collection/array) item isn't equal to the number size.

数组长度或collection中元素个数不等于期望值

指定者:
接口 ISizedAssert<E extends IAssert> 中的 sizeNe
参数:
size - 期望值
返回:


Copyright © 2013. All rights reserved.