[exo-jcr-commits] exo-jcr SVN: r1489 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/api/xa.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Jan 19 17:00:39 EST 2010


Author: pnedonosko
Date: 2010-01-19 17:00:38 -0500 (Tue, 19 Jan 2010)
New Revision: 1489

Modified:
   jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/api/xa/TestUserTransaction.java
Log:
EXOJCR-405 test cleanup

Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/api/xa/TestUserTransaction.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/api/xa/TestUserTransaction.java	2010-01-19 16:49:25 UTC (rev 1488)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/api/xa/TestUserTransaction.java	2010-01-19 22:00:38 UTC (rev 1489)
@@ -21,7 +21,6 @@
 import org.exoplatform.services.jcr.JcrAPIBaseTest;
 import org.exoplatform.services.jcr.core.XASession;
 import org.exoplatform.services.jcr.impl.core.SessionImpl;
-import org.exoplatform.services.jcr.impl.core.XASessionImpl;
 import org.exoplatform.services.transaction.TransactionService;
 
 import java.util.ArrayList;
@@ -32,7 +31,6 @@
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
 import javax.naming.InitialContext;
-import javax.transaction.RollbackException;
 import javax.transaction.UserTransaction;
 
 /**
@@ -48,13 +46,7 @@
 
    public void setUp() throws Exception
    {
-
-      // StandaloneContainer.setConfigurationPath("src/java/conf/standalone/test-configuration.xml");
-      //    
-      // container = StandaloneContainer.getInstance();
-
       super.setUp();
-
       txService = (TransactionService)container.getComponentInstanceOfType(TransactionService.class);
    }
 
@@ -113,7 +105,7 @@
       return someSessions;
    }
 
-   public void _testCommit() throws Exception
+   public void testCommit() throws Exception
    {
       assertNotNull(txService);
       List<Session> someSessions = openSomeSessions();
@@ -144,7 +136,7 @@
       someSessions.clear();
    }
 
-   public void _testRollback() throws Exception
+   public void testRollback() throws Exception
    {
       assertNotNull(txService);
       UserTransaction ut = txService.getUserTransaction();
@@ -169,11 +161,10 @@
       }
    }
 
-   public void _testUserTransactionFromJndi() throws Exception
+   public void testUserTransactionFromJndi() throws Exception
    {
       assertNotNull(txService);
 
-      // TODO in JNDI only JOTM today
       InitialContext ctx = new InitialContext();
       Object obj = ctx.lookup("UserTransaction");
       UserTransaction ut = (UserTransaction)obj;
@@ -187,7 +178,7 @@
       assertNotNull(session.getItem("/txcommit1"));
    }
 
-   public void _testReuseUT() throws Exception
+   public void testReuseUT() throws Exception
    {
       assertNotNull(txService);
       // TODO in JNDI only JOTM today



More information about the exo-jcr-commits mailing list