public class RestDocumentation extends Object implements org.junit.rules.TestRule
TestRule
used to bootstrap the generation of REST documentation from
JUnit tests.Constructor and Description |
---|
RestDocumentation(String outputDirectory)
Creates a new
RestDocumentation instance that will generate snippets to the
given outputDirectory |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
RestDocumentationContext |
beforeOperation()
Notification that a RESTful operation that should be documented is about to be
performed.
|
public RestDocumentation(String outputDirectory)
RestDocumentation
instance that will generate snippets to the
given outputDirectory
outputDirectory
- the output directorypublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public RestDocumentationContext beforeOperation()
RestDocumentationContext
for the operation.