Open nealeu opened 13 years ago
This would create a Mockito mock and place it in the context to be autowired everywhere.
@Autowired @Mock private DataOperations mockToProvideToSpringContext;
This would spy (where possible) on a real object already provided in the spring context
@Autowired @Spy private TxLog realObjectToSpyOn;
This would create a Mockito mock and place it in the context to be autowired everywhere.
This would spy (where possible) on a real object already provided in the spring context