Example usage for org.springframework.batch.support.transaction TransactionAwareProxyFactory createTransactionalMap

List of usage examples for org.springframework.batch.support.transaction TransactionAwareProxyFactory createTransactionalMap

Introduction

In this page you can find the example usage for org.springframework.batch.support.transaction TransactionAwareProxyFactory createTransactionalMap.

Prototype

public static <K, V> Map<K, V> createTransactionalMap() 

Source Link

Usage

From source file:org.springframework.batch.support.transaction.ConcurrentTransactionAwareProxyTests.java

@Test(expected = ExecutionException.class)
public void testConcurrentTransactionalMap() throws Exception {
    Map<Long, Map<String, String>> map = TransactionAwareProxyFactory.createTransactionalMap();
    testMap(map);/*from  w ww.  ja va  2s  . c o  m*/
}