We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HomeControllerTests gets me "ImageRepository bean not found". For me this version of annotation fixed the problem:
@MockBeans({ @MockBean(ImageService.class), @MockBean(ImageRepository.class) }) public class HomeControllerTests {
@Autowired WebTestClient webClient; @Autowired ImageService imageService;
The text was updated successfully, but these errors were encountered:
That's strange!
What version of Spring Boot are you using? The one supplied in the code, or did you upgrade.
Also, considering that Spring Boot 2.0 (the version in the book) is no longer supported, you may wish to take a peek at something a bit newer.
Check out => https://github.com/hacking-with-spring-boot/hacking-with-spring-boot-code
Sorry, something went wrong.
2.3.0.RELEASE
Yeah, the book’s code definitely hasn’t been upgraded to that version.
No branches or pull requests
HomeControllerTests gets me "ImageRepository bean not found".
For me this version of annotation fixed the problem:
@MockBeans({ @MockBean(ImageService.class), @MockBean(ImageRepository.class) })
public class HomeControllerTests {
The text was updated successfully, but these errors were encountered: