1 25 package org.objectweb.easybeans.tests.ejb2view; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.ItfEjb2LocalClient; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.SFSBEjb2LocalClientDeployDesc; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 44 public class TestEjb2DeployDescLocal { 45 46 49 private ItfEjb2LocalClient bean; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 bean = EJBHelper.getBeanRemoteInstance(SFSBEjb2LocalClientDeployDesc.class, ItfEjb2LocalClient.class); 59 } 60 61 68 @Test 69 public void verifyCreateWithDefaultName() throws Exception { 70 bean.createWithIntParameter(); 71 } 72 73 81 @Test 82 public void verifyCreateWithAnnotationInit() throws Exception { 83 bean.createWithStrParameter(); 84 } 85 86 93 @Test 94 public void verifyIsIdentical() throws Exception { 95 bean.verifyIdentity(); 96 } 97 98 104 @Test 105 public void verifyRemove() throws Exception { 106 bean.removeObject(); 107 } 108 109 115 @Test 116 public void verifyLookup() throws Exception { 117 bean.getBeanByLookup(); 118 } 119 } 120 | Popular Tags |