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 Spring mock: namespace support #78

Open nealeu opened 12 years ago

nealeu commented 12 years ago

Start with the following.

test scope: - confirm on classpath runtime scope: generates mocks

(if possible)

Feature toggles would be good to

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