CachedAopProxyFactory doesn't take into account the ProxyTargetAttributes property for cache key generation [SPRNET-1371]
This commit is contained in:
@@ -80,6 +80,20 @@ namespace Spring.Aop.Framework.DynamicProxy
|
||||
AssertAopProxyTypeCacheCount(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DoesNotCacheWithDifferentProxyTargetAttributes()
|
||||
{
|
||||
ProxyFactory advisedSupport = new ProxyFactory(new GoodCommand());
|
||||
advisedSupport.ProxyTargetAttributes = true;
|
||||
CreateAopProxy(advisedSupport);
|
||||
|
||||
advisedSupport = new ProxyFactory(new GoodCommand());
|
||||
advisedSupport.ProxyTargetAttributes = false;
|
||||
CreateAopProxy(advisedSupport);
|
||||
|
||||
AssertAopProxyTypeCacheCount(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DoesNotCacheWithDifferentInterfaces()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user