Skip to content
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

Make sure test autoconfiguration is ordered first #56

Closed
odrotbohm opened this issue Oct 24, 2022 · 0 comments
Closed

Make sure test autoconfiguration is ordered first #56

odrotbohm opened this issue Oct 24, 2022 · 0 comments
Assignees
Labels
in: test support Spring Boot integration testing type: enhancement Major enhanvements, new features
Milestone

Comments

@odrotbohm
Copy link
Member

We should declare ModuleTestAutoConfiguration as @AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE) to make sure that other autoconfiguration classes that use AutoConfigurationPackages already see the tweaked arrangement.

@odrotbohm odrotbohm added the in: test support Spring Boot integration testing label Oct 24, 2022
@odrotbohm odrotbohm added this to the 0.1 M2 milestone Oct 24, 2022
@odrotbohm odrotbohm self-assigned this Oct 24, 2022
@odrotbohm odrotbohm added the type: enhancement Major enhanvements, new features label Oct 24, 2022
odrotbohm added a commit that referenced this issue Oct 24, 2022
…st precedence.

Also, keep autoconfiguration packages as String array to avoid ClassCastExceptions when the bean definition's constructor arguments are inspected manually (like in AutoConfigurationPackages.addBasePackages(…).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test support Spring Boot integration testing type: enhancement Major enhanvements, new features
Projects
None yet
Development

No branches or pull requests

1 participant