Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
10.7
-
None
Description
Right now the order in MockitoComponentManagerExtension is:
- create empty CM
- inject @MockComponent fields
- handle @BeforeComponent methods
- fill the CM with @AllComponent and @ComponentList annotations
- handle @AfterComponent methods
- inject @InjectMockComponents fields
- inject @InjectComponentManager fields
This is preventing access to @InjectComponentManager fields if you need them in @BeforeComponent methods.