You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to run Spring Test concurrently. For this reason, a separate method rule has been created.
The logic of this rule (code included in reproducer) is to execute the test method multiple times in a dedicated executor.
Unfortunately injection flow does not work as excepted and throws the following exception:
org.springframework.beans.factory.BeanCreationException: Could not inject field: <xxx>;
nested exception is java.lang.IllegalStateException: The field <xxx> cannot have an existing value
at org.springframework.boot.test.mock.mockito.MockitoPostProcessor.inject(MockitoPostProcessor.java:364)