クラス ManualRestDocumentation

java.lang.ObjectSE
org.springframework.restdocs.ManualRestDocumentation
実装されているすべてのインターフェース:
RestDocumentationContextProvider

public final class ManualRestDocumentation extends ObjectSE implements RestDocumentationContextProvider
ManualRestDocumentation は、RestDocumentationContext を手動で管理するために使用されます。主に TestNG での使用を目的としていますが、コンテキストの手動管理が必要な環境での使用にも適しています。

JUnit のユーザーは RestDocumentationExtension を使用し、コンテキストの自動管理のための Extension ベースのサポートを活用する必要があります。

導入:
1.1.0
作成者:
Andy Wilkinson
  • コンストラクターの詳細

    • ManualRestDocumentation

      public ManualRestDocumentation()
      <gradle/maven ビルドパス>/generated-snippets へのスニペットを生成する新しい ManualRestDocumentation インスタンスを作成します。
    • ManualRestDocumentation

      public ManualRestDocumentation(StringSE outputDirectory)
      指定された outputDirectory へのスニペットを生成する新しい ManualRestDocumentation インスタンスを作成します。
      パラメーター:
      outputDirectory - 出力ディレクトリ
  • メソッドの詳細