1 22 package org.jboss.test.classloader.test; 23 24 import org.jboss.test.JBossTestCase; 25 import org.jboss.test.classloader.scoping.transaction.interfaces.TestSession; 26 import org.jboss.test.classloader.scoping.transaction.interfaces.TestSessionHome; 27 28 import junit.framework.Test; 29 import junit.framework.TestSuite; 30 31 37 public class ScopedTransactionUnitTestCase extends JBossTestCase 38 { 39 public ScopedTransactionUnitTestCase(String name) 40 { 41 super(name); 42 } 43 44 public void testScopedTransaction() throws Exception 45 { 46 getLog().debug("+++ testScopedTransaction start"); 47 48 TestSessionHome home = (TestSessionHome) getInitialContext().lookup("ScopedTxTestSession"); 49 TestSession session = home.create(); 50 session.runTest(); 51 52 getLog().debug("+++ testScopedTransaction end"); 53 } 54 55 public static Test suite() throws Exception 56 { 57 return getDeploySetup(ScopedTransactionUnitTestCase.class, "scopedtx.jar"); 58 } 59 } 60 | Popular Tags |