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
@MockitoBean
@TestBean
static
It's currently possible to declare a bean override field as static.
For example, the following currently works in a test class.
@MockitoBean static ExampleService service;
However, support for static fields was unintentional and does not align with @Autowired semantics where the annotated field cannot be static.
@Autowired
In light of that, we should reject static bean override fields.
The text was updated successfully, but these errors were encountered:
3569cfe
sbrannen
No branches or pull requests
It's currently possible to declare a bean override field as
static
.For example, the following currently works in a test class.
However, support for static fields was unintentional and does not align with
@Autowired
semantics where the annotated field cannot be static.In light of that, we should reject static bean override fields.
The text was updated successfully, but these errors were encountered: