类 JsonContent<T>
- java.lang.Object
- org.springframework.boot.test.json.JsonContent<T>
- 类型参数:
T
- the source type that created the content
- 所有已实现的接口:
org.assertj.core.api.AssertProvider<JsonContentAssert>
public final class JsonContent<T> extends Object implements org.assertj.core.api.AssertProvider<JsonContentAssert>
JSON content created usually from a JSON tester. Generally used only toprovide
JsonContentAssert
to AssertJassertThat
calls.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 JsonContent(Class<?> resourceLoadClass, org.springframework.core.ResolvableType type, String json)
Create a newJsonContent
instance.
构造器详细资料
JsonContent
public JsonContent(Class<?> resourceLoadClass, org.springframework.core.ResolvableType type, String json)
Create a newJsonContent
instance.- 参数:
resourceLoadClass
- the source class used to load resourcestype
- the type under test (ornull
if not known)json
- the actual JSON content
方法详细资料
assertThat
@Deprecated public JsonContentAssert assertThat()
已过时。in favor of AssertJ'sassertThat
Use AssertJ'sassertThat
instead.- 指定者:
assertThat
在接口中org.assertj.core.api.AssertProvider<T>