1 25 package org.objectweb.easybeans.tests.interceptors.business.stateless.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.stateless.beanmanaged.interceptoraccess.SLSBBMTAccessSessionCtxInterceptor00; 37 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.interceptoraccess.SLSBBMTAccessSessionCtxInterceptor01; 38 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.interceptoraccess.SLSBBMTAccessUserTxInterceptor00; 39 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.interceptoraccess.SLSBBeanManagedAccessInterceptorTest00; 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 56 public class TestSLBeanManagedAccessInterceptor00 extends BaseAccessOperationsInterceptor00 { 57 58 62 @BeforeClass 63 public void startUp() throws Exception { 64 ItfAccessJNDI bean00 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, ItfAccessJNDI.class); 65 ItfAccessEJB bean01 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, ItfAccessEJB.class); 66 ItfAccessResourceManager bean02 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, 67 ItfAccessResourceManager.class); 68 ItfAccessEntityManager bean03 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, 69 ItfAccessEntityManager.class); 70 ItfAccessEMFactory bean04 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, 71 ItfAccessEMFactory.class); 72 ItfAccessSessionContext bean05 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, 73 ItfAccessSessionContext.class); 74 ItfAccessUserTransaction bean06 = getBeanRemoteInstance( 75 SLSBBMTAccessUserTxInterceptor00.class, ItfAccessUserTransaction.class); 76 77 ItfAccessSessionContext bean07 = getBeanRemoteInstance( 78 SLSBBMTAccessSessionCtxInterceptor00.class, ItfAccessSessionContext.class); 79 ItfAccessSessionContext bean08 = getBeanRemoteInstance( 80 SLSBBMTAccessSessionCtxInterceptor01.class, ItfAccessSessionContext.class); 81 super.setBeans(bean00, bean01, bean02, bean03, bean04, bean05, bean06, bean07, bean08); 82 } 83 84 92 @Override 93 @Test(groups = {"java:comp/env access"}) 94 public void testJNDI00() throws Exception { 95 super.testJNDI00(); 96 } 97 98 106 @Override 107 @Test(groups = {"EJB access"}) 108 public void testEJB00() throws Exception { 109 super.testEJB00(); 110 } 111 112 120 @Override 121 @Test(groups = {"Resource access"}) 122 public void testResource00() throws Exception { 123 super.testResource00(); 124 } 125 126 134 @Override 135 @Test(groups = {"Entity Manager access"}) 136 public void testEntityManager00() throws Exception { 137 super.testEntityManager00(); 138 } 139 140 148 @Override 149 @Test(groups = {"Entity Factory access"}) 150 public void testEntityFactory00() throws Exception { 151 super.testEntityFactory00(); 152 } 153 154 162 @Override 163 @Test(groups = {"SessionContext access"}) 164 public void testSessionContext00() throws Exception { 165 super.testSessionContext00(); 166 } 167 168 177 @Override 178 @Test(groups = {"SessionContext access"}) 179 public void testSessionContext01() throws Exception { 180 super.testSessionContext01(); 181 } 182 183 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 |