I would like to inject a Mockito mock object into a Spring (3+) bean for the purposes of unit testing with JUnit. My bean dependencies are currently injected by using the
Below code works with autowiring - it is not the shortest version but useful when it should work only with standard spring/mockito jars.
com.package.Dao