RestDocumentation class is deprecated, what should I use instead?

467 views Asked by At

The documentation for org.springframework.restdocs.RestDocumentation states that it is deprecated.

I am trying to use the class in a JUnit test like this:

@Rule
public RestDocumentation restDocumentation = new RestDocumentation("target/generated-snippets");

What class should I be using instead?

1

There are 1 answers

0
Rafa On BEST ANSWER

Try JUnitRestDocumentation restDocumentation = new JUnitRestDocumentation("target/generated-snippets")