-
Notifications
You must be signed in to change notification settings - Fork 117
add REST Assured Support #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add REST Assured Support #59
Conversation
|
Awesome - thanks a lot for your PR. I will have a deeper look at it over the weekend. |
...-api-spec/src/main/kotlin/com/epages/restdocs/apispec/RestAssuredRestDocumentationWrapper.kt
Outdated
Show resolved
Hide resolved
f28538f to
55f9c7b
Compare
RestAssured limitations removed
Remove the dependency to a specific spring-restdocs client from the restdocs-api-spec module and create two new modules: - restdocs-api-spec-mockmvc Contains the wrapper for spring-restdocs-mockmvnc - restdocs-api-spec-restassured Contains the wrapper for spring-restdocs-restassured
…for mockmvc support)
…ntext init failure
60993d7 to
6dd3ac8
Compare
mduesterhoeft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the contribution. This looks very good. I would just ask you to remove the sharing of test code between the new modules and go for code duplication instead.
Optionally if you find the time a simple sample for the restassured support would be great.
| @ExtendWith(SpringExtension::class) | ||
| @WebMvcTest | ||
| class MockMvcRestDocumentationWrapperIntegrationTest(@Autowired mockMvc: MockMvc) : ResourceSnippetIntegrationTest(mockMvc) { | ||
| class MockMvcRestDocumentationWrapperIntegrationTest(@Autowired private val mockMvc: MockMvc) : ResourceSnippetIntegrationTest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would rather not share code between the tests. Mainly because I think the gradle setup for this is a little exotic and also complex. I would rather go for the code duplication here.
|
I will build a release tonight - I would like to add a few things to the readme first. |
|
Released with 0.6.0 |
Introduced a new
RestAssuredRestDocumentationWrapperthat can be used for REST Asssured documentation.