-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Auto-configure Spring REST Docs to use REST Assured #9643
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
Conversation
dd5435e
to
b304d85
Compare
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.
In addition to the comment I left, I think it'd make sense to restructure the code a bit. I think I'd keep RestDocsAutoConfiguration
, and then use inner classes for the MockMvc- and REST Assured-specific configuration.
What do you think, @eddumelendez? If my proposed changes make sense to you, do you have time to make them?
@Configuration | ||
@ConditionalOnClass({ RequestSpecification.class, RestAssuredRestDocumentation.class }) | ||
@EnableConfigurationProperties | ||
public class RestAssuredAutoConfiguration { |
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.
This doesn't feel quite right to me, particularly the name. It's not general purpose auto-configured for REST Assured so I think it might be better if it were named RestDocsRestAssuredAutoConfiguration
.
@wilkinsona thanks for feedback. I have applied the changes and rebase my branch. Now, all checks passed ok. |
Thanks for yet another contribution, @eddumelendez. I've merged this into master. |
* gh-9643: Polish "Add auto-configuration for REST Docs with REST Assured" Add auto-configuration for REST Docs with REST Assured
See gh-7228