|
@@ -30,7 +30,7 @@ public class MethodInvocationFactory {
|
|
public static MockMethodInvocation createSec2150MethodInvocation()
|
|
public static MockMethodInvocation createSec2150MethodInvocation()
|
|
throws NoSuchMethodException {
|
|
throws NoSuchMethodException {
|
|
ProxyFactory factory = new ProxyFactory(new Class[] { PersonRepository.class });
|
|
ProxyFactory factory = new ProxyFactory(new Class[] { PersonRepository.class });
|
|
- factory.setTargetClass(CrudRepository.class);
|
|
|
|
|
|
+ factory.setTargetClass(PersonRepositoryImpl.class);
|
|
PersonRepository repository = (PersonRepository) factory.getProxy();
|
|
PersonRepository repository = (PersonRepository) factory.getProxy();
|
|
return new MockMethodInvocation(repository, PersonRepository.class, "findAll");
|
|
return new MockMethodInvocation(repository, PersonRepository.class, "findAll");
|
|
}
|
|
}
|