From 117b43c4de2ca7d5c3455fa325de90fcffab63d9 Mon Sep 17 00:00:00 2001 From: Matt Warman Date: Sat, 15 Dec 2018 08:31:13 -0500 Subject: [PATCH] See #48. Maven dependencies for Spring REST Docs --- pom.xml | 12 ++++++++++++ src/test/java/com/leanstacks/ws/AbstractDocTest.java | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d6d8add..abc307e 100644 --- a/pom.xml +++ b/pom.xml @@ -76,6 +76,18 @@ spring-security-test test + + com.google.guava + guava + 27.0.1-jre + test + + + + + org.springframework.restdocs + spring-restdocs-mockmvc + diff --git a/src/test/java/com/leanstacks/ws/AbstractDocTest.java b/src/test/java/com/leanstacks/ws/AbstractDocTest.java index ab4a84e..e452d40 100644 --- a/src/test/java/com/leanstacks/ws/AbstractDocTest.java +++ b/src/test/java/com/leanstacks/ws/AbstractDocTest.java @@ -35,7 +35,9 @@ public abstract class AbstractDocTest { private transient WebApplicationContext context; /** - * A JUnit 4.x Rule for Spring REST Documentation generation. + * A JUnit 4.x Rule for Spring REST Documentation generation. Note that the snippet output directory is only + * provided because this project contains both 'build.gradle' and 'pom.xml' files. Spring REST Docs uses those files + * to auto-detect the build system and automatically sets certain configuration values which cannot be overridden. */ @Rule public transient JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("build/generated-snippets");