org.test4j.hamcrest.iassert.object.impl
类 MapAssert

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>
                              继承者 org.test4j.hamcrest.iassert.common.impl.AllAssert<Map<?,?>,IMapAssert>
                                  继承者 org.test4j.hamcrest.iassert.object.impl.MapAssert
所有已实现的接口:
Matcher<Map<?,?>>, SelfDescribing, IAssert<Map<?,?>,IMapAssert>, IBaseAssert<Map<?,?>,IMapAssert>, IListAssert<Map<?,?>,IMapAssert>, IListHasItemsAssert<IMapAssert>, IReflectionAssert<IMapAssert>, ISizedAssert<IMapAssert>, IMapAssert

public class MapAssert
extends AllAssert<Map<?,?>,IMapAssert>
implements IMapAssert


嵌套类摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
MapAssert()
           
MapAssert(Map<?,?> map)
           
 
方法摘要
 IMapAssert hasEntry(Map.Entry<?,?> entry, Map.Entry<?,?>... entries)
          断言map中包含kay:value值对
 IMapAssert hasEntry(Object key, Object value, Object... objects)
          断言map中包含kay:value值对
 IMapAssert hasKeys(Object key, Object... keys)
          断言map包含参数中列出的key值
 IMapAssert hasValues(Object value, Object... values)
          断言map包含参数中列出的值对象
 
从类 org.test4j.hamcrest.iassert.common.impl.ListAssert 继承的方法
eqIgnoreOrder, isEqualTo, propertyEqMap, propertyMatch, reflectionEqMap, reflectionEqMap
 
从类 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.IBaseAssert 继承的方法
all, any, any, clazIs, clazIsSubFrom, eq, eqToString, eqToString, in, isEqualTo, isEqualTo, isNull, isNull, not, notAll, notAny, notEqualTo, notIn, notNull, notNull, same
 
从接口 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
 
从接口 org.test4j.hamcrest.iassert.common.intf.IReflectionAssert 继承的方法
eqByReflect, eqIgnoreAll, eqIgnoreDefault, eqIgnoreOrder, propertyEq, propertyEq, propertyEq, propertyEqMap, propertyMatch, reflectionEq, reflectionEqMap
 

构造方法详细信息

MapAssert

public MapAssert()

MapAssert

public MapAssert(Map<?,?> map)
方法详细信息

hasKeys

public IMapAssert hasKeys(Object key,
                          Object... keys)
从接口 IMapAssert 复制的描述
断言map包含参数中列出的key值

指定者:
接口 IMapAssert 中的 hasKeys
参数:
key - 期望key值
keys - 期望key值
返回:

hasValues

public IMapAssert hasValues(Object value,
                            Object... values)
从接口 IMapAssert 复制的描述
断言map包含参数中列出的值对象

指定者:
接口 IMapAssert 中的 hasValues
参数:
value - 期望的值
values - 期望的值
返回:

hasEntry

public IMapAssert hasEntry(Object key,
                           Object value,
                           Object... objects)
从接口 IMapAssert 复制的描述
断言map中包含kay:value值对

指定者:
接口 IMapAssert 中的 hasEntry
返回:

hasEntry

public IMapAssert hasEntry(Map.Entry<?,?> entry,
                           Map.Entry<?,?>... entries)
从接口 IMapAssert 复制的描述
断言map中包含kay:value值对

指定者:
接口 IMapAssert 中的 hasEntry
返回:


Copyright © 2013. All rights reserved.