1 25 package org.objectweb.easybeans.tests.interceptors.business.stateful.beanmanaged; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessEJB; 30 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessEMFactory; 31 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessEntityManager; 32 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessJNDI; 33 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessResourceManager; 34 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessSessionContext; 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessUserTransaction; 36 import org.objectweb.easybeans.tests.common.ejbs.stateful.beanmanaged.interceptoraccess.SFSBBMTAccessSessionCtxInterceptor00; 37 import org.objectweb.easybeans.tests.common.ejbs.stateful.beanmanaged.interceptoraccess.SFSBBMTAccessSessionCtxInterceptor01; 38 import org.objectweb.easybeans.tests.common.ejbs.stateful.beanmanaged.interceptoraccess.SFSBBMTAccessUserTxInterceptor00; 39 import org.objectweb.easybeans.tests.common.ejbs.stateful.beanmanaged.interceptoraccess.SFSBBeanManagedAccessInterceptorTest00; 40 import org.objectweb.easybeans.tests.interceptors.business.base.access.BaseAccessOperationsInterceptor00; 41 import org.testng.annotations.BeforeClass; 42 import org.testng.annotations.Test; 43 44 58 public class TestSFBeanManagedAccessInterceptor00 extends BaseAccessOperationsInterceptor00 { 59 60 64 @BeforeClass 65 public void startUp() throws Exception { 66 ItfAccessJNDI bean00 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, ItfAccessJNDI.class); 67 ItfAccessEJB bean01 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, ItfAccessEJB.class); 68 ItfAccessResourceManager bean02 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, 69 ItfAccessResourceManager.class); 70 ItfAccessEntityManager bean03 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, 71 ItfAccessEntityManager.class); 72 ItfAccessEMFactory bean04 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, 73 ItfAccessEMFactory.class); 74 ItfAccessSessionContext bean05 = getBeanRemoteInstance(SFSBBeanManagedAccessInterceptorTest00.class, 75 ItfAccessSessionContext.class); 76 ItfAccessUserTransaction bean06 = getBeanRemoteInstance( 77 SFSBBMTAccessUserTxInterceptor00.class, ItfAccessUserTransaction.class); 78 79 ItfAccessSessionContext bean07 = getBeanRemoteInstance(SFSBBMTAccessSessionCtxInterceptor00.class, 80 ItfAccessSessionContext.class); 81 ItfAccessSessionContext bean08 = getBeanRemoteInstance(SFSBBMTAccessSessionCtxInterceptor01.class, 82 ItfAccessSessionContext.class); 83 super.setBeans(bean00, bean01, bean02, bean03, bean04, bean05, bean06, bean07, bean08); 84 } 85 86 94 @Override 95 @Test(groups = {"java:comp/env access"}) 96 public void testJNDI00() throws Exception { 97 super.testJNDI00(); 98 } 99 100 108 @Override 109 @Test(groups = {"EJB access"}) 110 public void testEJB00() throws Exception { 111 super.testEJB00(); 112 } 113 114 122 @Override 123 @Test(groups = {"Resource access"}) 124 public void testResource00() throws Exception { 125 super.testResource00(); 126 } 127 128 136 @Override 137 @Test(groups = {"Entity Manager access"}) 138 public void testEntityManager00() throws Exception { 139 super.testEntityManager00(); 140 } 141 142 150 @Override 151 @Test(groups = {"Entity Factory access"}) 152 public void testEntityFactory00() throws Exception { 153 super.testEntityFactory00(); 154 } 155 156 164 @Override 165 @Test(groups = {"SessionContext access"}) 166 public void testSessionContext00() throws Exception { 167 super.testSessionContext00(); 168 } 169 170 178 @Override 179 @Test(groups = {"SessionContext access"}) 180 public void testSessionContext01() throws Exception { 181 super.testSessionContext01(); 182 } 183 184 192 @Override 193 @Test(groups = {"SessionContext access"}) 194 public void testSessionContext02() throws Exception { 195 super.testSessionContext02(); 196 } 197 198 206 @Override 207 @Test(groups = {"UserTransaction access"}) 208 public void testUserTransaction00() throws Exception { 209 super.testUserTransaction00(); 210 } 211 212 } 213 | Popular Tags |