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.SLSBBMTAccessUserTxInterceptor00; 37 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.interceptoraccess.SLSBBeanManagedAccessInterceptorTest00; 38 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.interceptoraccess.SLSBBeanManagedAccessInterceptorTest01; 39 import org.objectweb.easybeans.tests.interceptors.business.base.access.BaseAccessOperationsInterceptor00; 40 import org.testng.annotations.BeforeClass; 41 import org.testng.annotations.Test; 42 43 44 55 public class TestSLBeanManagedAccessInterceptor01 extends BaseAccessOperationsInterceptor00{ 56 57 61 @BeforeClass 62 public void startUp() throws Exception { 63 ItfAccessJNDI bean00 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, ItfAccessJNDI.class); 64 ItfAccessEJB bean01 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest00.class, ItfAccessEJB.class); 65 ItfAccessResourceManager bean02 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest01.class, 66 ItfAccessResourceManager.class); 67 ItfAccessEntityManager bean03 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest01.class, 68 ItfAccessEntityManager.class); 69 ItfAccessEMFactory bean04 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest01.class, 70 ItfAccessEMFactory.class); 71 ItfAccessSessionContext bean05 = getBeanRemoteInstance(SLSBBeanManagedAccessInterceptorTest01.class, 72 ItfAccessSessionContext.class); 73 ItfAccessUserTransaction bean06 = getBeanRemoteInstance( 74 SLSBBMTAccessUserTxInterceptor00.class, ItfAccessUserTransaction.class); 75 super.setBeans(bean00, bean01, bean02, bean03, bean04, bean05, bean06); 76 } 77 78 86 @Override 87 @Test(groups = {"java:comp/env access"}) 88 public void testJNDI00() throws Exception { 89 super.testJNDI00(); 90 } 91 92 100 @Override 101 @Test(groups = {"EJB access"}) 102 public void testEJB00() throws Exception { 103 super.testEJB00(); 104 } 105 106 114 @Override 115 @Test(groups = {"Resource access"}) 116 public void testResource00() throws Exception { 117 super.testResource00(); 118 } 119 120 128 @Override 129 @Test(groups = {"Entity Manager access"}) 130 public void testEntityManager00() throws Exception { 131 super.testEntityManager00(); 132 } 133 134 142 @Override 143 @Test(groups = {"Entity Factory access"}) 144 public void testEntityFactory00() throws Exception { 145 super.testEntityFactory00(); 146 } 147 148 156 @Override 157 @Test(groups = {"SessionContext access"}) 158 public void testSessionContext00() throws Exception { 159 super.testSessionContext00(); 160 } 161 162 170 @Override 171 @Test(groups = {"UserTransaction access"}) 172 public void testUserTransaction00() throws Exception { 173 super.testUserTransaction00(); 174 } 175 176 } 177 | Popular Tags |