org.test4j.hamcrest.iassert.common.impl
类 ListAssert<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>
- 所有已实现的接口:
- Matcher<T>, SelfDescribing, IAssert<T,E>, IBaseAssert<T,E>, IListAssert<T,E>, IListHasItemsAssert<E>, IReflectionAssert<E>, ISizedAssert<E>
- 直接已知子类:
- AllAssert
public class ListAssert<T,E extends IAssert>
- extends SizeAssert<T,E>
- implements IAssert<T,E>, IListAssert<T,E>
| 从类 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 |
ListAssert
public ListAssert(Class<? extends IAssert> clazE)
ListAssert
public ListAssert(T value,
Class<? extends IAssert> clazE)
isEqualTo
public E isEqualTo(Object expected,
EqMode... modes)
- 从接口
IListAssert 复制的描述
- want: the actual value should be equals to the expected value specified
by argument.
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 isEqualTo
- 返回:
eqIgnoreOrder
public E eqIgnoreOrder(Object expected)
- 从接口
IReflectionAssert 复制的描述
- 在忽略元素顺序情况下二者是相等的
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 eqIgnoreOrder - 指定者:
- 接口
IReflectionAssert<E extends IAssert> 中的 eqIgnoreOrder - 覆盖:
- 类
ReflectionAssert<T,E extends IAssert> 中的 eqIgnoreOrder
- 返回:
reflectionEqMap
public E reflectionEqMap(List<ICore.DataMap> expected,
EqMode... modes)
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 reflectionEqMap
propertyEqMap
public E propertyEqMap(int count,
ICore.DataMap expected,
EqMode... modes)
- 从接口
IListAssert 复制的描述
- want: the value of properties specified by DataMap's keys of items in
collection(array) should be equal to the value of corresponding key in
DataMap.
If the property of items in collection doesn't be specified by DataMap,
that willn't be compared.
把实际对象按照Map中的key值取出来,进行反射比较
如果对象的属性不在Map中,则不进行比较
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 propertyEqMap
- 返回:
reflectionEqMap
public E reflectionEqMap(int count,
ICore.DataMap expected,
EqMode... modes)
- 从接口
IListAssert 复制的描述
- will be @deprecated in the future.
same as #propertyEqMap(int, DataMap, EqMode...)
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 reflectionEqMap
- 返回:
propertyMatch
public E propertyMatch(ItemsMode itemsMode,
String property,
Matcher matcher)
- 从接口
IListAssert 复制的描述
- the property value of all/any(specified by ItemsMode) items in
collection(array) should be matched by the matcher.
- 指定者:
- 接口
IListAssert<T,E extends IAssert> 中的 propertyMatch
- 参数:
itemsMode - All or Any Items in Collection or Array.property - the property name of items in collection or array.matcher - Hamcrest Matcher
- 返回:
Copyright © 2013. All rights reserved.