-
Notifications
You must be signed in to change notification settings - Fork 651
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
Fix Spring mocking injection @MockBean @MockkBean #684
Conversation
Using prepareTestInstance loads the complete test stack instance, not only Autowired fields.
Great one! @sksamuel Let's sneak this into 3.3.0? |
This is most beautifully formatted pull request ever. |
And commit + commit message |
We should do the same for the |
Is this already part of 3.3.0-RC3? If so, it's not working for me. I still get this when the test makes the first mock-wiring call:
|
Yes it's included in 3.3.0-RC3
…On Fri, 22 Feb 2019 at 08:59, Rüdiger Schulz ***@***.***> wrote:
Is this already part of 3.3.0-RC3?
If so, it's not working for me. I still get this when the test makes the
first mock-wiring call:
kotlin.UninitializedPropertyAccessException: lateinit property service has not been initialized
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#684 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAtZGvkZVX4tGWwPEdY3TsoaNyKaecURks5vP7GAgaJpZM4bA8Jl>
.
|
@mindhaq Did you added the If you could share the code, I can take a look. I'm using 3.3.0-RC3, and it is working. |
@tonilopezmr ah! my bad, I though adding the Thanks for the hint, now it works like a charme. |
The |
💣 Issue
🎩 What is the goal?
📝 How is it being implemented?
I hope we can improve Kotlintest integration with Spring ❤️, thanks!