Class JUnitRestDocumentation

java.lang.Object
org.springframework.restdocs.JUnitRestDocumentation
All Implemented Interfaces:
org.junit.rules.TestRule, RestDocumentationContextProvider

public class JUnitRestDocumentation extends Object implements RestDocumentationContextProvider, org.junit.rules.TestRule
A JUnit TestRule used to automatically manage the RestDocumentationContext.
Since:
1.1.0
Author:
Andy Wilkinson
  • Constructor Details

    • JUnitRestDocumentation

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

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