Class ManualRestDocumentation

java.lang.Object
org.springframework.restdocs.ManualRestDocumentation
All Implemented Interfaces:
RestDocumentationContextProvider

public final class ManualRestDocumentation extends Object implements RestDocumentationContextProvider
ManualRestDocumentation is used to manually manage the RestDocumentationContext. Primarly intended for use with TestNG, but suitable for use in any environment where manual management of the context is required.

Users of JUnit should use JUnitRestDocumentation and take advantage of its Rule-based support for automatic management of the context.

Since:
1.1.0
Author:
Andy Wilkinson
  • Constructor Details

    • ManualRestDocumentation

      public ManualRestDocumentation()
      Creates a new ManualRestDocumentation instance that will generate snippets to <gradle/maven build path>/generated-snippets.
    • ManualRestDocumentation

      public ManualRestDocumentation(String outputDirectory)
      Creates a new ManualRestDocumentation instance that will generate snippets to the given outputDirectory.
      Parameters:
      outputDirectory - the output directory
  • Method Details