Skip to content

Commit

Permalink
See #48. Maven dependencies for Spring REST Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarman committed Dec 15, 2018
1 parent be899c8 commit 117b43c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0.1-jre</version>
<scope>test</scope>
</dependency>

<!-- Dependencies for API Docs -->
<dependency>
<groupId>org.springframework.restdocs</groupId>
<artifactId>spring-restdocs-mockmvc</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/com/leanstacks/ws/AbstractDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 117b43c

Please sign in to comment.