Package org.infinispan.tx

Source Code of org.infinispan.tx.BatchingAndEnlistment2Test

package org.infinispan.tx;

import org.infinispan.configuration.cache.Configuration;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.test.fwk.TestCacheManagerFactory;
import org.testng.annotations.Test;

/**
* @author Mircea Markus <mircea.markus@jboss.com> (C) 2011 Red Hat Inc.
* @since 5.1
*/
@Test(groups = "functional", testName = "tx.BatchingAndEnlistment2Test")
public class BatchingAndEnlistment2Test extends BatchingAndEnlistmentTest {

   @Override
   protected EmbeddedCacheManager createCacheManager() throws Exception {
      ConfigurationBuilder cb = new ConfigurationBuilder();
      cb.invocationBatching().enable();
      return TestCacheManagerFactory.createCacheManager(cb);
   }
}
TOP

Related Classes of org.infinispan.tx.BatchingAndEnlistment2Test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.