1 25 package org.objectweb.easybeans.tests.ejb2view; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.ItfEjb2ClientLifecycle; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.SFSBEjb2ClientLifecycle; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 45 public class TestEjb2Lifecycle { 46 47 50 private ItfEjb2ClientLifecycle bean; 51 52 56 @BeforeMethod 57 public void setup() throws Exception { 58 bean = EJBHelper.getBeanRemoteInstance(SFSBEjb2ClientLifecycle.class, ItfEjb2ClientLifecycle.class); 60 } 61 62 68 @Test 69 public void testEjbPassivate() { 70 bean.verifyPassivate(); 71 } 72 73 79 @Test 80 public void testEjbActivate() { 81 bean.verifyActivate(); 82 } 83 84 92 @Test 93 public void testEjbRemove() throws Exception { 94 bean.verifyRemove(); 95 } 96 } 97 | Popular Tags |