Class RestDocumentation


  • public abstract class RestDocumentation
    extends java.lang.Object
    Convenience helper for running Spring REST Docs in JUnit.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.springframework.restdocs.JUnitRestDocumentation usingGradleDir()  
      static org.springframework.restdocs.JUnitRestDocumentation usingMavenDir()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestDocumentation

        public RestDocumentation()
    • Method Detail

      • usingGradleDir

        public static org.springframework.restdocs.JUnitRestDocumentation usingGradleDir()
        Returns:
        JUnit TestRule for Spring REST Docs, preconfigured for writing to build/generated-snippets.
      • usingMavenDir

        public static org.springframework.restdocs.JUnitRestDocumentation usingMavenDir()
        Returns:
        JUnit TestRule for Spring REST Docs, preconfigured for writing to target/generated-snippets.