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

public class ListHasItemsAssert<T,E extends IAssert>
extends BaseAssert<T,E>
implements IListHasItemsAssert<E>


嵌套类摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
ListHasItemsAssert(Class<? extends IAssert> clazE)
           
ListHasItemsAssert(T value, Class<? extends IAssert> clazE)
           
 
方法摘要
 E allItemsMatchAll(Matcher matcher, Matcher... matchers)
          all of items in collection(array) should match all of matchers specified by following arguments.
 E allItemsMatchAny(Matcher matcher, Matcher... matchers)
          all of items in collection(array) should match any of matchers specified by following arguments.
 E anyItemsMatchAll(Matcher matcher, Matcher... matchers)
          any of items in collection(array) should match all of matchers specified by following arguments.
 E anyItemsMatchAny(Matcher matcher, Matcher... matchers)
          any of items in collection(array) should match any of matchers specified by following arguments.
 E hasAllItems(Object item, Object... items)
          want: the collection or the array should contain all items listed by following arguments.
 E hasAnyItems(Object item, Object... items)
          want: the collection or the array should contain any items listed by following arguments.
 E hasItems(Object item)
          want: the collection or the array should contain item specified by argument.
 E hasItems(Object item, Object... items)
          want: the collection or the array should contain item specified by argument.
 E match(ItemsMode itemsMode, MatchMode matchMode, Matcher matcher, Matcher... matchers)
          all of any(specified by ItemsMode) items(properties) should match all or any(specified by MatchMode) matchers.
 
从类 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
 

构造方法详细信息

ListHasItemsAssert

public ListHasItemsAssert(Class<? extends IAssert> clazE)

ListHasItemsAssert

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

hasItems

public E hasItems(Object item)
从接口 IListHasItemsAssert 复制的描述
want: the collection or the array should contain item specified by argument.

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 hasItems
返回:

hasItems

public E hasItems(Object item,
                  Object... items)
从接口 IListHasItemsAssert 复制的描述
want: the collection or the array should contain item specified by argument.

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 hasItems
返回:

hasAllItems

public E hasAllItems(Object item,
                     Object... items)
从接口 IListHasItemsAssert 复制的描述
want: the collection or the array should contain all items listed by following arguments.

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 hasAllItems
参数:
item - expected item
items - other expected items
返回:

hasAnyItems

public E hasAnyItems(Object item,
                     Object... items)
从接口 IListHasItemsAssert 复制的描述
want: the collection or the array should contain any items listed by following arguments.

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 hasAnyItems
参数:
item - expected item
items - other expected items
返回:

match

public E match(ItemsMode itemsMode,
               MatchMode matchMode,
               Matcher matcher,
               Matcher... matchers)
从接口 IListHasItemsAssert 复制的描述
all of any(specified by ItemsMode) items(properties) should match all or any(specified by MatchMode) matchers.
when itemsMode==AllItems && matchMode==MatchAll, same as IListHasItemsAssert.allItemsMatchAll(Matcher, Matcher...)
when itemsMode==AllItems && matchMode==MatchAny, same as IListHasItemsAssert.allItemsMatchAny(Matcher, Matcher...)
when itemsMode==AnyItems && matchMode==MatchAll, same as IListHasItemsAssert.anyItemsMatchAll(Matcher, Matcher...)
when itemsMode==AnyItems && matchMode==MatchAny, same as IListHasItemsAssert.anyItemsMatchAny(Matcher, Matcher...)

数组中所有或任一(由ItemsMode决定)元素必须和下列全部或任一(由MatchMode决定)Matcher匹配。

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 match
返回:

allItemsMatchAll

public E allItemsMatchAll(Matcher matcher,
                          Matcher... matchers)
从接口 IListHasItemsAssert 复制的描述
all of items in collection(array) should match all of matchers specified by following arguments.
same as #match(ItemsMode.AllItems, MatchMode.MatchAll, Matcher, Matcher...)

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 allItemsMatchAll
返回:

allItemsMatchAny

public E allItemsMatchAny(Matcher matcher,
                          Matcher... matchers)
从接口 IListHasItemsAssert 复制的描述
all of items in collection(array) should match any of matchers specified by following arguments.
same as #match(ItemsMode.AllItems, MatchMode.MatchAny, Matcher, Matcher...)

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 allItemsMatchAny
返回:

anyItemsMatchAll

public E anyItemsMatchAll(Matcher matcher,
                          Matcher... matchers)
从接口 IListHasItemsAssert 复制的描述
any of items in collection(array) should match all of matchers specified by following arguments.
same as #match(ItemsMode.AnyItems, MatchMode.MatchAll, Matcher, Matcher...)

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 anyItemsMatchAll
返回:

anyItemsMatchAny

public E anyItemsMatchAny(Matcher matcher,
                          Matcher... matchers)
从接口 IListHasItemsAssert 复制的描述
any of items in collection(array) should match any of matchers specified by following arguments.
same as #match(ItemsMode.AnyItems, MatchMode.MatchAny, Matcher, Matcher...)

指定者:
接口 IListHasItemsAssert<E extends IAssert> 中的 anyItemsMatchAny
返回:


Copyright © 2013. All rights reserved.