Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.tx;
 
@Test(testName = "tx.TransactionManagerLookupTreeTest", groups = "unit")
   @Override
   protected void doTest(TransactionManagerLookup tml) {
      EmbeddedCacheManager ecm = null;
      try {
         ConfigurationBuilder cb = new ConfigurationBuilder();
         cb.transaction().transactionManagerLookup(tml)
               .invocationBatching().enable();
         ecm = TestCacheManagerFactory.createCacheManager(cb);
         TreeCache<ObjectObjecttc = new TreeCacheFactory().createTreeCache(ecm.<ObjectObject>getCache());
         tc.put("/a/b/c""k""v");
         assert "v".equals(tc.get("/a/b/c""k"));
      } finally {
         TestingUtil.killCacheManagers(ecm);
      }
   }
New to GrepCode? Check out our FAQ X