1 25 package org.objectweb.easybeans.tests.interceptors.lifecycle.stateful.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.stateful.containermanaged.lifecallback.SFSBPostConstructExternalOrder00; 31 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.lifecallback.SFSBPostConstructExternalOrder01; 32 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.lifecallback.SFSBPostConstructInternalOrder00; 33 import org.testng.annotations.BeforeClass; 34 import org.testng.annotations.Test; 35 36 46 public class TestSFPostConstruct00 { 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(SFSBPostConstructInternalOrder00.class, ItfCheckPostConstruct.class); 70 beanPostConstructExternal00 = getBeanRemoteInstance(SFSBPostConstructExternalOrder00.class, 71 ItfCheckPostConstruct.class); 72 beanPostConstructExternal01 = getBeanRemoteInstance(SFSBPostConstructExternalOrder01.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 115 | Popular Tags |