クラスの使用
org.springframework.boot.test.json.JsonContent
JsonContent を使用するパッケージ
org.springframework.boot.test.json 内の JsonContent 使用
修飾子と型メソッド説明BasicJsonTester.from(byte[] source) 指定された JSON バイトから JSON コンテンツを作成します。指定された JSON ファイルから JSON コンテンツを作成します。BasicJsonTester.from(InputStreamSE source) 指定された JSON 入力ストリームから JSON コンテンツを作成します。BasicJsonTester.from(CharSequenceSE source) 指定された文字列ソースから JSON コンテンツを作成します。指定されたリソースパスから JSON コンテンツを作成します。指定された JSON リソースから JSON コンテンツを作成します。protected JsonContent<T> AbstractJsonMarshalTester.getJsonContent(StringSE json) ソース JSON 文字列からJsonContentインスタンスを取得するために使用されるファクトリメソッド。protected JsonContent<T> Jackson2Tester.getJsonContent(StringSE json) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protected JsonContent<T> JacksonTester.getJsonContent(StringSE json) 特定の値の書き込みからJsonContentを返します。