Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently, when using ApplicationComposer, @MockInjector can be declared in two ways:
public @MockInjector FallbackPropertyInjector injector() { return new MockitoInjector(); } public @MockInjector Class<? extends FallbackPropertyInjector> injectorClass() { return MockitoInjector.class; }
As almost everything can now be declared with annotations on the test class (@ContainerProperties = @Configuration, @Classes ~ @Module), it would be nice if @MockInjector could be too:
@RunWith(ApplicationComposer.class) @MockInjector(MockitoInjector.class) @Classes(...) public class MyTest {...}