whirlwind-match / fuzzydb

fuzzydb is a fuzzy matching database engine capable of providing human-like search results that make life much easier for users of websites searching for things like cars, houses, people and jobs.
19 stars 5 forks source link

Create @Mock @Autowire combo support #39

Open nealeu opened 13 years ago

nealeu commented 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;