1 25 package org.objectweb.easybeans.tests.deploymentdesc; 26 27 import javax.naming.NamingException ; 28 import javax.transaction.HeuristicMixedException ; 29 import javax.transaction.HeuristicRollbackException ; 30 import javax.transaction.NotSupportedException ; 31 import javax.transaction.RollbackException ; 32 import javax.transaction.SystemException ; 33 34 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor.ItfOverrideTester00; 35 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor.SFSBOverrideTester00; 36 import org.objectweb.easybeans.tests.common.exception.TransactionException; 37 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 38 import org.testng.annotations.BeforeMethod; 39 import org.testng.annotations.Test; 40 41 51 public class TestOverriden00 { 52 53 56 private ItfOverrideTester00 tester; 57 58 62 @BeforeMethod 63 public void setup() throws Exception { 64 tester = EJBHelper.getBeanRemoteInstance(SFSBOverrideTester00.class, ItfOverrideTester00.class); 65 } 66 67 76 @Test 77 public void testLocalInjection() { 78 tester.testLocalInjection(); 79 } 80 81 90 @Test 91 public void testRemoteInjection() { 92 tester.testRemoteInjection(); 93 } 94 95 104 @Test 105 public void testLookupLocal() throws Exception { 106 tester.testLookupLocal(); 107 } 108 109 118 @Test 119 public void testLookupRemote() throws Exception { 120 tester.testLookupRemote(); 121 } 122 123 124 125 145 @Test 146 public void testTransactionType() throws IllegalStateException , SecurityException , HeuristicMixedException , 147 HeuristicRollbackException , RollbackException , SystemException , NotSupportedException , NamingException { 148 tester.testTransactionType(); 149 } 150 151 } 152 | Popular Tags |