BeanScopeBuilder.ForTesting |
BeanScopeBuilder.forTesting() |
Extend the builder to support testing using mockito with
withMock() and withSpy() methods.
|
BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withMock(Class<?> type) |
Use a mockito mock when injecting this bean type.
|
BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withMock(Class<?> type,
String name) |
Register as a Mockito mock with a qualifier name.
|
<D> BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withMock(Class<D> type,
Consumer<D> consumer) |
Use a mockito mock when injecting this bean type additionally
running setup on the mock instance.
|
BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withSpy(Class<?> type) |
Use a mockito spy when injecting this bean type.
|
BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withSpy(Class<?> type,
String name) |
Register a Mockito spy with a qualifier name.
|
<D> BeanScopeBuilder.ForTesting |
BeanScopeBuilder.ForTesting.withSpy(Class<D> type,
Consumer<D> consumer) |
Use a mockito spy when injecting this bean type additionally
running setup on the spy instance.
|