1 25 package org.objectweb.easybeans.tests.interceptors.lifecycle.stateless.containermanaged; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheckPostConstruct; 30 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.lifecallback.SLSBPostConstructExternalOrder00; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.lifecallback.SLSBPostConstructExternalOrder01; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.lifecallback.SLSBPostConstructInternalOrder00; 33 import org.testng.annotations.BeforeClass; 34 import org.testng.annotations.Test; 35 36 46 public class TestSLPostConstruct00 { 47 48 51 private ItfCheckPostConstruct beanPostConstructExternal00; 52 53 56 private ItfCheckPostConstruct beanPostConstructExternal01; 57 58 61 private ItfCheckPostConstruct beanPostConstructInternal; 62 63 67 @BeforeClass 68 public void startUp() throws Exception { 69 beanPostConstructInternal = getBeanRemoteInstance(SLSBPostConstructInternalOrder00.class, ItfCheckPostConstruct.class); 70 beanPostConstructExternal00 = getBeanRemoteInstance(SLSBPostConstructExternalOrder00.class, 71 ItfCheckPostConstruct.class); 72 beanPostConstructExternal01 = getBeanRemoteInstance(SLSBPostConstructExternalOrder01.class, 73 ItfCheckPostConstruct.class); 74 } 75 76 84 @Test 85 public void testInternal() throws Exception { 86 beanPostConstructInternal.check(); 87 } 88 89 95 @Test 96 public void testExternal00() throws Exception { 97 beanPostConstructExternal00.check(); 98 } 99 100 109 @Test 110 public void testExternal01() throws Exception { 111 beanPostConstructExternal01.check(); 112 } 113 } 114 | Popular Tags |