Package | Description |
---|---|
org.springframework.boot.test.json |
Support for testing JSON.
|
Modifier and Type | Method and Description |
---|---|
JsonContent<Object> |
BasicJsonTester.from(byte[] source)
Create JSON content from the specified JSON bytes.
|
JsonContent<Object> |
BasicJsonTester.from(CharSequence source)
Create JSON content from the specified String source.
|
JsonContent<Object> |
BasicJsonTester.from(File source)
Create JSON content from the specified JSON file.
|
JsonContent<Object> |
BasicJsonTester.from(InputStream source)
Create JSON content from the specified JSON input stream.
|
JsonContent<Object> |
BasicJsonTester.from(Resource source)
Create JSON content from the specified JSON resource.
|
JsonContent<Object> |
BasicJsonTester.from(String path,
Class<?> resourceLoadClass)
Create JSON content from the specified resource path.
|
protected JsonContent<T> |
AbstractJsonMarshalTester.getJsonContent(String json)
Factory method used to get a
JsonContent instance from a source JSON
string. |
protected JsonContent<T> |
JacksonTester.getJsonContent(String json) |
JsonContent<T> |
AbstractJsonMarshalTester.write(T value)
Return
JsonContent from writing the specific value. |
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.