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

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

public class JSONAssert
extends AllAssert<Object,JSONAssert>
implements IJSONAssert


嵌套类摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的嵌套类/接口
Assert.AssertType
 
字段摘要
 
从类 org.test4j.hamcrest.iassert.common.impl.Assert 继承的字段
assertClaz, link, the, type, value, valueClaz
 
构造方法摘要
JSONAssert(String json, Class<? extends IAssert<?,?>> clazE)
           
 
方法摘要
 ICollectionAssert isJSONArray()
          json对象是集合
 IMapAssert isJSONMap()
          json对象是key-value对象
 IStringAssert isSimple()
          json对象是个简单对象
 
从类 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.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
 

构造方法详细信息

JSONAssert

public JSONAssert(String json,
                  Class<? extends IAssert<?,?>> clazE)
方法详细信息

isJSONArray

public ICollectionAssert isJSONArray()
从接口 IJSONAssert 复制的描述
json对象是集合

指定者:
接口 IJSONAssert 中的 isJSONArray
返回:

isJSONMap

public IMapAssert isJSONMap()
从接口 IJSONAssert 复制的描述
json对象是key-value对象

指定者:
接口 IJSONAssert 中的 isJSONMap
返回:

isSimple

public IStringAssert isSimple()
从接口 IJSONAssert 复制的描述
json对象是个简单对象

指定者:
接口 IJSONAssert 中的 isSimple
返回:


Copyright © 2013. All rights reserved.