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>
|
方法摘要 |
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.BaseAssert 继承的方法 |
all, any, any, clazIs, clazIsSubFrom, eq, eqToString, eqToString, in, isEqualTo, isEqualTo, isNull, isNull, not, notAll, notAny, notEqualTo, notIn, notNull, notNull, same, toStringAssert |
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.