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.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
ListAssert(Class<? extends IAssert> clazE)
           
ListAssert(T value, Class<? extends IAssert> clazE)
           
 
方法摘要
 E eqIgnoreOrder(Object expected)
          在忽略元素顺序情况下二者是相等的
 E isEqualTo(Object expected, EqMode... modes)
          want: the actual value should be equals to the expected value specified by argument.
 E propertyEqMap(int count, ICore.DataMap expected, EqMode... modes)
          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.
 E propertyMatch(ItemsMode itemsMode, String property, Matcher matcher)
          the property value of all/any(specified by ItemsMode) items in collection(array) should be matched by the matcher.
 E reflectionEqMap(int count, ICore.DataMap expected, EqMode... modes)
          will be @deprecated in the future.
 E reflectionEqMap(List<ICore.DataMap> expected, EqMode... modes)
           
 
从类 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
 

构造方法详细信息

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.