1 25 package org.objectweb.easybeans.tests.ejb2view; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.ItfEjb2Client; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view.SFSBEjb2Client; 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 TestEJb2AnnotationRemote { 45 46 49 private ItfEjb2Client bean; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 bean = EJBHelper.getBeanRemoteInstance(SFSBEjb2Client.class, ItfEjb2Client.class); 59 } 60 61 68 @Test 69 public void testCreateWithDefaultName() throws Exception { 70 bean.createWithoutParameters(); 71 } 72 73 81 @Test 82 public void testCreateWithAnnotationInit() throws Exception { 83 bean.createWithParameters(); 84 } 85 86 92 @Test 93 public void testGetBeanByLookup() throws Exception { 94 bean.getBeanByLookup(); 95 } 96 97 104 @Test 105 public void testIsIdentical() throws Exception { 106 bean.verifyIdentity(); 107 } 108 109 115 @Test 116 public void testRemove() throws Exception { 117 bean.removeObject(); 118 } 119 120 126 @Test 127 public void testMetadata() throws Exception { 128 bean.getEJBMetaData(); 129 } 130 131 138 @Test 139 public void verifyGetPrimaryKey() throws Exception { 140 bean.verifyGetPrimaryKey(); 141 } 142 } 143 | Popular Tags |