Add getTargetDataSource to TransactionAwareCacheDecorator
Issue: SPR-15479
This commit is contained in:
@@ -46,6 +46,13 @@ public class TransactionAwareCacheDecoratorTests {
|
||||
new TransactionAwareCacheDecorator(null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getTargetCache() {
|
||||
Cache target = new ConcurrentMapCache("testCache");
|
||||
TransactionAwareCacheDecorator cache = new TransactionAwareCacheDecorator(target);
|
||||
assertSame(target, cache.getTargetCache());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void regularOperationsOnTarget() {
|
||||
Cache target = new ConcurrentMapCache("testCache");
|
||||
|
||||
Reference in New Issue
Block a user