Open nealeu opened 12 years ago
HttpInvokerProxyFactoryBean woudl be good example for type = stub
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (getServiceInterface() == null) {
throw new IllegalArgumentException("Property 'serviceInterface' is required");
}
this.serviceProxy = new ProxyFactory(getServiceInterface(), this).getProxy(getBeanClassLoader());
}
Gives us a proxy that calls this.invoke(MethodInvocation), as defined by MethodInterceptor interface.
At that point we can return the relevant stub value.
Start with the following.
test scope: - confirm on classpath
runtime scope: generates mocks
Feature toggles would be good to